(hacky fork) up-to-date implementation of the angelscript C wrapper. Originally by Andreas Jönsson.

dllmain.cpp 463B

12345678910111213141516171819202122232425
  1. //
  2. // dllmain.cpp
  3. //
  4. // This is the entry point for the windows dll
  5. //
  6. #include <windows.h>
  7. #include "angelscript_c.h"
  8. BOOL APIENTRY DllMain( HANDLE hModule,
  9. DWORD ul_reason_for_call,
  10. LPVOID lpReserved
  11. )
  12. {
  13. switch (ul_reason_for_call)
  14. {
  15. case DLL_PROCESS_ATTACH:
  16. case DLL_THREAD_ATTACH:
  17. case DLL_THREAD_DETACH:
  18. case DLL_PROCESS_DETACH:
  19. break;
  20. }
  21. return TRUE;
  22. }