Skip to content

Instantly share code, notes, and snippets.

View jamespascoe's full-sized avatar

James Pascoe jamespascoe

View GitHub Profile
@jamespascoe
jamespascoe / callback.cpp
Created July 7, 2020 16:16
SWIG Callback Example for mapping std::function (C++) to Lua functions
#include <iostream>
#include "lua5.3/lua.hpp"
#include "callback.hpp"
extern "C" {
int luaopen_Callback(lua_State* L);
}