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

Generates code using only the minimal amount of information. More...

Macros

#define OOLUA_MFUNC(...)
 Deduce and generate a proxy for a member function. More...
 
#define OOLUA_MFUNC_CONST(...)
 Deduce and generate a proxy for a constant member function. More...
 
#define OOLUA_CFUNC(...)
 Deduce and generate a proxy for a C function. More...
 
#define OOLUA_SFUNC(...)
 Deduce and generate a proxy for a class static function. More...
 

Detailed Description

Generates code using only the minimal amount of information.

Generates a proxy function using the only the minimal amount of information which is generally the name of the thing being proxied and possibly a new name for the proxy. If a new name is supplied then the function will be made available to Lua using it and this name must be used when Exporting the function.

This part of the DSL attempts to automatically determine the parameter types and return type for the function in question. However, if the function is overloaded then the compiler will be unable to resolve the function, due to the ambiguity, and will produce a compile time error. To help the compiler resolve this ambiguity, the user should specify more information using the corresponding, yet longer named, Expressive DSL entry.
The longer DSL name requires more information.

Note
No Traits can be expressed with this DSL group.

Macro Definition Documentation

#define OOLUA_CFUNC (   ...)

Deduce and generate a proxy for a C function.

OOLUA_CFUNC(FunctionName, ProxyFunctionName)

Parameters
FunctionNameName of the C function to be proxied
ProxyFunctionNameName of the function to generate which will proxy FunctionName
See Also
cpp_params
OOLUA_C_FUNCTION
#define OOLUA_MFUNC (   ...)

Deduce and generate a proxy for a member function.

OOLUA_MFUNC(FunctionName, Optional)

Parameters
FunctionNameName of the member function to be proxied
OptionalProxyFunctionName. Defaults to FunctionName
See Also
cpp_params
OOLUA_MEM_FUNC
OOLUA_MEM_FUNC_RENAME
#define OOLUA_MFUNC_CONST (   ...)

Deduce and generate a proxy for a constant member function.

OOLUA_MFUNC_CONST(FunctionName, Optional)

Parameters
FunctionNameName of the constant function to be proxied
OptionalProxyFunctionName. Defaults to FunctionName
See Also
cpp_params
OOLUA_MEM_FUNC_CONST
OOLUA_MEM_FUNC_CONST_RENAME
#define OOLUA_SFUNC (   ...)

Deduce and generate a proxy for a class static function.

OOLUA_SFUNC(FunctionName, Optional)

Parameters
FunctionNameName of the static function to be proxied
OptionalProxyFunctionName. Defaults to FunctionName
Note
This function will not be exported and needs to be registered with OOLua see OOLUA::register_class_static
See Also
cpp_params