Git Product home page Git Product logo

luakit's Introduction

Hi there 👋

welcome 😄

luakit's People

Contributors

xiyoo0812 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

luakit's Issues

table_call 返回false

lua 版本:lua-5.3.6

    c++:
    auto kit_state = luakit::kit_state();
    kit_state.run_file(script);
    auto flag = kit_state.call("Run", nullptr);
    auto name = kit_state.get<luakit::lua_table>("Plugin").get<string>("Name");
    printf("Name from Lua:%s \n", name.c_str());
    flag = kit_state.get<luakit::lua_table>("Plugin").get_function("Run");
    printf("Run Flag:%d \n", flag);
    flag = kit_state.table_call("Plugin", "Run", nullptr);
    printf("Call Run Flag:%d \n", flag);
    kit_state.close();



    lua:
    Plugin = {
        Name = "Helmet_Head_Person";
        Path = "weights/helmet.gpu.pt"
    }
    function Run()
        print("Single Run")
    end
    function Plugin:Run()
        print("Plugin Run")
    end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.