File: lupa_defs.h

package info (click to toggle)
python-lupa 1.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,856 kB
  • sloc: python: 2,317; ansic: 10; makefile: 7
file content (16 lines) | stat: -rw-r--r-- 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Compatibility definitions for Lupa.
 */

#if LUA_VERSION_NUM >= 502
#define __lupa_lua_resume(L, from_, nargs)   lua_resume(L, from_, nargs)
#define lua_objlen(L, i)                     lua_rawlen(L, (i))

#else
#if LUA_VERSION_NUM >= 501
#define __lupa_lua_resume(L, from_, nargs)   lua_resume(L, nargs)

#else
#error Lupa requires at least Lua 5.1 or LuaJIT 2.x
#endif
#endif