Skip to content

History / How to add your own module

Revisions

  • Updated How to add your own module (markdown)

    @yichoneyi yichoneyi committed Nov 30, 2016
  • Updated How to add your own module (markdown)

    @yichoneyi yichoneyi committed Nov 30, 2016
  • Updated How to add your own module (markdown)

    @yichoneyi yichoneyi committed Nov 30, 2016
  • Updated How to add your own module (markdown)

    @yichoneyi yichoneyi committed Nov 30, 2016
  • // The registration macro // The first parameter MY_MODULE is a string to be used for registration. Use your module name. // The second parameter is the module name to be required in lua, you invoke the methods in your module by using this name. // The third parameter is a key-value map for your module methods and their names. // The last parameter is a init function, which will be called when module initialize. Usually, you can set it for NULL. LUANODE_MODULE(MY_MODULE, "my_module", my_module_map, NULL);

    @yichoneyi yichoneyi committed Nov 30, 2016
  • Created How to add your own module (markdown)

    @yichoneyi yichoneyi committed Nov 30, 2016