Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2015-10-12 23:11:24 +0300
committerRonan Collobert <ronan@collobert.com>2015-10-12 23:11:24 +0300
commit4da9f2440701d71b01865a1df7fe63177226c9da (patch)
tree9cf0a313c1f90707e4afaec51039cd72ae0d9eda
parenta63174c34b6d9aef6f24df1adb3deba5a9196abd (diff)
fix lua_equal with lua 5.2
-rw-r--r--lib/luaTHRD.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/luaTHRD.h b/lib/luaTHRD.h
index 3760bdb..23acdf0 100644
--- a/lib/luaTHRD.h
+++ b/lib/luaTHRD.h
@@ -1,6 +1,10 @@
#ifndef LUA_THRD_INC
#define LUA_THRD_INC
+#if (LUA_VERSION_NUM == 502)
+#define lua_equal(L, idx1, idx2) lua_compare(L, (idx1), (idx2), LUA_OPEQ)
+#endif
+
static int luaTHRD_pushudata(lua_State *L, void *ptr, const char* typename)
{
void **udata = lua_newuserdata(L, sizeof(void*));