Skip to content

Commit

Permalink
Luabind Strict mode for Mixed and Debug configurations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Xottab-DUTY committed Sep 29, 2018
1 parent 7f7f96a commit f26518d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Common/Config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
// CONFIG_SCRIPT_ENGINE_LOG_EXPORTS
// CONFIG_SCRIPT_ENGINE_LOG_SKIPPED_EXPORTS

#ifdef DEBUG
#define XRAY_SCRIPTS_NO_BACKWARDS_COMPATIBILITY
#endif

/* Callbacks */
#define EXTENDED_ITEM_CALLBACKS // (eItemToBelt, eItemToSlot, eItemToRuck)
#define EXTENDED_WEAPON_CALLBACKS // (eOnWeaponZoomIn, eOnWeaponZoomOut, eOnWeaponJammed)
Expand Down

0 comments on commit f26518d

Please sign in to comment.