From c483cf0e36d654e10d15324fd4c2b75a57c405d8 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 9 Jun 2010 23:41:27 +0200 Subject: Adding the ability to declare subfunctions. --- include/BLua.h | 5 +++++ 1 file changed, 5 insertions(+) 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; \ -- cgit v1.2.3