Skip to content

Instantly share code, notes, and snippets.

View efortier's full-sized avatar
💭
Working on Project Apshai

Eric Fortier efortier

💭
Working on Project Apshai
View GitHub Profile
@Youka
Youka / lua_myobject.cpp
Last active August 27, 2024 06:32
Example of Lua in C++ and userdata objects
// Lua C API
#include <lua.hpp>
// C++ input/output streams
#include <iostream>
// MyObject as C++ class
class MyObject{
private:
double x;
public: