Questions tagged [jnlua]

JNLua (Java Native Lua) integrates the Lua Scripting Language into Java.

JNLua (Java Native Lua) integrates the Lua Scripting Language into Java. The integration is based on the original implementation of Lua which is written in ANSI C. The Lua C code is integrated into Java using the Java Native API (JNI).

5 questions
1
vote
0 answers

with creating table in table in Lua C-API

I use this code for creating table in table (Like namespace) in Lua C-API: JNIEXPORT void JNICALL Java_com_naef_jnlua_LuaState_lua_1import_1tables(JNIEnv *env, jobject obj, jstring namespace) { lua_State *L; JNLUA_ENV(env); L =…
BORSHEVIK
  • 794
  • 1
  • 8
  • 12
1
vote
1 answer

How to extend a Java object in JNLua

I am experimenting with using JNLua's javavm module to connect with and extend a Java library (JAR). So far I am super impressed with how easy it is to pass Java objects back and forth between Lua and Java- seemlessness. Now I am interested to…
1
vote
0 answers

Need to serialize Aerospike Lua Map>>

We have a Lua Map>> structure in Aerospike . We want to compress this structure, and in order to do that we need to serialize it. Any pointers about how to go about this?
KrazyGautam
  • 2,839
  • 2
  • 21
  • 31
1
vote
2 answers

Need help to compile jnlua with mingw

This problem has stucked me for days. I have very few knowledge on C, recently I downloaded "jnlua-0.9.6-src.zip" from "https://code.google.com/p/jnlua/downloads/list" and try to compile jnlua.c with following command: mingw32-gcc -m32 -O2 -c -o…
Tyler
  • 185
  • 5
-2
votes
1 answer

How do I get the thread index after calling newthread?

In JNLUA, newThread() is a void function in Java but I don't quite understand the C code behind implementing the java side of the function. Also, would someone explain why the original author would return the index/pointer?
darius sg
  • 11
  • 2