Sigis Dagilis a écrit :

Hi,

Here is very simple example:

test.cpp
-----------------
#include <neko.h>

int main()
{
    value o = alloc_object(NULL);
    alloc_field(o, val_id("x"), alloc_int(2));

    return 0;
}
---------------------
g++ -g -o test test.cpp -lneko

calling alloc_field results segmentation fault.

Make sure you call neko_global_init(NULL) before doing anything else.
Check http://nekovm.org/doc/vm for a complete example.

Nicolas


--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to