OPTIM/MEDIUM: lua: executes the garbage collector only when using cosocket
The garbage collector is a little bit heavy to run, and it was added
only for cosockets. This patch prevent useless executions when no
cosockets are used.
diff --git a/include/types/hlua.h b/include/types/hlua.h
index 43916d4..1bf2a75 100644
--- a/include/types/hlua.h
+++ b/include/types/hlua.h
@@ -25,6 +25,7 @@
#define HLUA_WAKERESWR 0x00000004
#define HLUA_WAKEREQWR 0x00000008
#define HLUA_EXIT 0x00000010
+#define HLUA_MUST_GC 0x00000020
enum hlua_exec {
HLUA_E_OK = 0,