OOLua  2.0.1
C++ and Lua binding
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Exporting

Exports member functions. More...

Macros

#define OOLUA_EXPORT_FUNCTIONS(...)
 Exports zero or more member functions which will be registered with Lua. More...
 
#define OOLUA_EXPORT_FUNCTIONS_CONST(...)
 Exports zero or more const member functions which will be registered with Lua. More...
 
#define OOLUA_EXPORT_NO_FUNCTIONS(Class)
 Inform that there are no functions of interest. More...
 

Detailed Description

Exports member functions.

Exporting defines which member functions will be registered with Lua when the class type is registered. Even when there are no member functions to be exported you still need to inform OOLua about this. Calling an OOLUA_EXPORT* procedure in a header file is an error that will fail to compile.

See Also
OOLUA_EXPORT_FUNCTIONS
OOLUA_EXPORT_FUNCTIONS_CONST
OOLUA_EXPORT_NO_FUNCTIONS

Macro Definition Documentation

#define OOLUA_EXPORT_FUNCTIONS (   ...)

Exports zero or more member functions which will be registered with Lua.

OOLUA_EXPORT_FUNCTIONS(ClassName,Optional)

Parameters
ClassNameName of class to which the function belong to
OptionalComma separated list of member function names
See Also
class_functions
#define OOLUA_EXPORT_FUNCTIONS_CONST (   ...)

Exports zero or more const member functions which will be registered with Lua.

OOLUA_EXPORT_FUNCTIONS_CONST(ClassName,Optional)

Parameters
ClassNameName of class to which the function belong to
OptionalComma separated list of constant member function names
See Also
class_functions
#define OOLUA_EXPORT_NO_FUNCTIONS (   Class)
Value:
EXPORT_OOLUA_FUNCTIONS_0_NON_CONST(Class)\
EXPORT_OOLUA_FUNCTIONS_0_CONST(Class)

Inform that there are no functions of interest.

Parameters
Class