Manual_Math.cpp 730 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2008-2023 the Urho3D project
  2. // License: MIT
  3. #include "../Precompiled.h"
  4. #include "../AngelScript/APITemplates.h"
  5. #include "../AngelScript/Manual_Math.h"
  6. namespace Urho3D
  7. {
  8. // This function is called before ASRegisterGenerated()
  9. void ASRegisterManualFirst_Math(asIScriptEngine* engine)
  10. {
  11. }
  12. // ========================================================================================
  13. // This function is called after ASRegisterGenerated()
  14. void ASRegisterManualLast_Math(asIScriptEngine* engine)
  15. {
  16. // template <class T, typename std::enable_if...> inline T Mod(T x, T y) | File: ../Math/MathDefs.h
  17. engine->RegisterGlobalFunction("float Mod(float, float)", AS_FUNCTION(Mod<float>), AS_CALL_CDECL);
  18. }
  19. }