From 1779099b71c5a67eff253667c8a17cb69810a3b4 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 3 Oct 2016 22:29:37 -0500 Subject: [PATCH] Cleanup old common macros (#4507) --- addons/common/functions/script_component.hpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/addons/common/functions/script_component.hpp b/addons/common/functions/script_component.hpp index bb0d2d5dff..6a1bf9154d 100644 --- a/addons/common/functions/script_component.hpp +++ b/addons/common/functions/script_component.hpp @@ -1,13 +1 @@ #include "\z\ace\addons\common\script_component.hpp" - -#define VALIDHASH(hash) (IS_ARRAY(hash) && {(count hash) >= 2} && {IS_ARRAY(hash select 0)} && {IS_ARRAY(hash select 1)}) -#define ERROR(msg) throw msg + format[" @ %1:%2", _callFrom, _lineNo] -#define HANDLECATCH diag_log text _exception; assert(exception=="") - -#define ERRORDATA(c) private ["_callFrom", "_lineNo"];\ - _callFrom = "";\ - _lineNo = -1;\ - if((count _this) > c) then {\ - _callFrom = _this select c;\ - _lineNo = _this select c+1;\ - };