Skip to content

Commit f26518d

Browse files
committed
Luabind Strict mode for Mixed and Debug configurations
Now it will behave as usual on Mixed and Debug and will punish you for your script errors. On Release it will behave like old luabind – it will skip the errors.
1 parent 7f7f96a commit f26518d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Common/Config.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
// CONFIG_SCRIPT_ENGINE_LOG_EXPORTS
66
// CONFIG_SCRIPT_ENGINE_LOG_SKIPPED_EXPORTS
77

8+
#ifdef DEBUG
9+
#define XRAY_SCRIPTS_NO_BACKWARDS_COMPATIBILITY
10+
#endif
11+
812
/* Callbacks */
913
#define EXTENDED_ITEM_CALLBACKS // (eItemToBelt, eItemToSlot, eItemToRuck)
1014
#define EXTENDED_WEAPON_CALLBACKS // (eOnWeaponZoomIn, eOnWeaponZoomOut, eOnWeaponJammed)

0 commit comments

Comments
 (0)