Skip to content

How to use fengari? #218

@Aerixblx

Description

@Aerixblx
const fengari = require('fengari');
const luaconf  = fengari.luaconf;
const lua      = fengari.lua;
const lauxlib  = fengari.lauxlib;
const lualib   = fengari.lualib;
 
const L = lauxlib.luaL_newstate();
 
lualib.luaL_openlibs(L);
 
lua.lua_pushliteral(L, "print('hello world!')");

It prints nothing so I'm confused on how you use this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions