diff options
author | Paul Gilbert | 2012-05-06 12:21:29 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-06 12:21:29 +1000 |
commit | 10deebed553fc5d458a20756d963835aa1a86afe (patch) | |
tree | 28d6a862d8e67fbd6823bd9aed7c4d06b7f85fd2 /engines/tony/custom.h | |
parent | 2dbdb31c8b274b896877c8716434e971e94a4a44 (diff) | |
download | scummvm-rg350-10deebed553fc5d458a20756d963835aa1a86afe.tar.gz scummvm-rg350-10deebed553fc5d458a20756d963835aa1a86afe.tar.bz2 scummvm-rg350-10deebed553fc5d458a20756d963835aa1a86afe.zip |
TONY: Beginnings of refactoring Tony engine's threads to use coroutines
Diffstat (limited to 'engines/tony/custom.h')
-rw-r--r-- | engines/tony/custom.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/tony/custom.h b/engines/tony/custom.h index 57d726f70e..a9f4ac2aab 100644 --- a/engines/tony/custom.h +++ b/engines/tony/custom.h @@ -67,10 +67,10 @@ typedef uint32 HWND; #define DECLARE_CUSTOM_FUNCTION(x) void x #define BEGIN_CUSTOM_FUNCTION_MAP() \ - static void AssignError(HWND hWnd, int num) { \ + static void AssignError(int num) { \ error("Custom function %u has been already assigned!", num); \ } \ - void INIT_CUSTOM_FUNCTION(HWND hWnd, LPCUSTOMFUNCTION *lpMap) \ + void INIT_CUSTOM_FUNCTION(LPCUSTOMFUNCTION *lpMap) \ { @@ -78,10 +78,10 @@ typedef uint32 HWND; } -#define ASSIGN(num,func) \ - if (lpMap[num]!=NULL) \ - AssignError(hWnd,num); \ - lpMap[num]=func; +#define ASSIGN(num, func) \ + if (lpMap[num] != NULL) \ + AssignError(num); \ + lpMap[num] = func; class RMTony; class RMPointer; @@ -90,7 +90,7 @@ class RMLocation; class RMInventory; class RMInput; -void INIT_CUSTOM_FUNCTION(HWND hWnd, LPCUSTOMFUNCTION *lpMap); +void INIT_CUSTOM_FUNCTION(LPCUSTOMFUNCTION *lpMap); void SetupGlobalVars(RMTony *tony, RMPointer *ptr, RMGameBoxes *box, RMLocation *loc, RMInventory *inv, RMInput *input); #endif |