diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-09 23:41:27 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-09 23:41:27 +0200 |
commit | c483cf0e36d654e10d15324fd4c2b75a57c405d8 (patch) | |
tree | 763b7c11dd7a7b2b32384324bf211d0dfacc5d5c /include | |
parent | 84dde56c3281a3570ddfc40e6f2f5ac580e692dd (diff) |
Adding the ability to declare subfunctions.
Diffstat (limited to 'include')
-rw-r--r-- | include/BLua.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/BLua.h b/include/BLua.h index f714981..37b1a36 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -261,6 +261,11 @@ struct lua_functypes_t { classname##_functions[enumvar].name, \ sLua_##classname::function_##enumvar) +#define PUSH_SUBFUNCTION(classname, enumvar, array) L->declarefunc( \ + classname##_functions[enumvar].name, \ + sLua_##classname::function_##enumvar, \ + array) + #define CHECK_METHODS(classname) { \ int i = 0; \ |