VirtualBox

Changeset 90828 in vbox for trunk/tools


Ignore:
Timestamp:
Aug 24, 2021 9:44:46 AM (3 years ago)
Author:
vboxsync
Message:

Main: bugref:1909: Added API localization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/gen-slickedit-workspace.sh

    r88326 r90828  
    627627#define DECLARE_EMPTY_CTOR_DTOR(a)      a(); ~a();
    628628#define DEFINE_EMPTY_CTOR_DTOR(a)       a::a() {}   a::~a() {}
     629#define DECLARE_TRANSLATE_METHODS(cls) \
     630    static inline const char *tr(const char *aSourceText, \
     631                                 const char *aComment = NULL, \
     632                                 const int   aNum = -1) \
     633    { \
     634        return VirtualBoxTranslatable::translate(#cls, aSourceText, aComment, aNum); \
     635    }
     636#define DECLARE_COMMON_CLASS_METHODS(cls) \
     637    DECLARE_EMPTY_CTOR_DTOR(cls) \
     638    DECLARE_TRANSLATE_METHODS(cls)
    629639#define NS_DECL_ISUPPORTS
    630640#define NS_IMETHOD                      virtual nsresult
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette