ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Patches/Utility.h
Revision: 994
Committed: Mon Apr 7 10:33:27 2014 UTC (11 years, 6 months ago) by alloc
Content type: text/x-chdr
File size: 662 byte(s)
Log Message:
Daodan:
- Fix #80
- Reorganization of file hierarchy

File Contents

# Content
1 #ifndef UTILITY_H
2 #define UTILITY_H
3
4 #include "../Daodan.h"
5
6 #define WHERESTR "[%-22s:%4d ]: "
7 #define WHEREARG __FILE__, __LINE__
8 #define DEBUGPRINT2(...) DDrStartupMessage(__VA_ARGS__)
9 #define STARTUPMESSAGE(_fmt, ...) DEBUGPRINT2(WHERESTR _fmt, WHEREARG, __VA_ARGS__)
10
11
12 void __cdecl DDrStartupMessage(const char* fmt, ...);
13 int64_t ONICALL DDrMachineTime_High();
14 double ONICALL DDrMachineTime_High_Frequency();
15 int64_t ONICALL DDrMachineTime_Sixtieths();
16 void ONICALL DDrMake_Weapon_Message(char* weapon_string, char* output_ptr);
17 void ONICALL DDrWeapon2Message(int* weapon, void* output_ptr);
18 void ONICALL DDrText_Hook();
19 #endif