PolyLuaEventStuff.h 393 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * PolyLuaEventStuff.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 1/27/09.
  6. * Copyright 2009 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. #pragma once
  10. #ifdef _COMPILE_LUA
  11. // Poly compilation config
  12. extern "C"
  13. {
  14. #include "lua.h"
  15. #include "lualib.h"
  16. }
  17. typedef struct{
  18. lua_State* L;
  19. int ref;
  20. } SWIGLUA_REF;
  21. extern void handlePolyLuaEvent(SWIGLUA_REF *onEvent, void *event);
  22. #endif