diff --git a/src/dbg/bookmark.h b/src/dbg/bookmark.h index 557e4795..0cfb82b8 100644 --- a/src/dbg/bookmark.h +++ b/src/dbg/bookmark.h @@ -1,5 +1,5 @@ -#ifndef _GLOBAL_H -#define _GLOBAL_H +#ifndef _BOOKMARK_H +#define _BOOKMARK_H #include "_global.h" @@ -21,4 +21,4 @@ void BookmarkClear(); void BookmarkGetList(std::vector & list); bool BookmarkGetInfo(duint Address, BOOKMARKSINFO* info); -#endif // _GLOBAL_H \ No newline at end of file +#endif // _BOOKMARK_H \ No newline at end of file diff --git a/src/dbg/breakpoint.h b/src/dbg/breakpoint.h index 4d7d718c..4a16d0b7 100644 --- a/src/dbg/breakpoint.h +++ b/src/dbg/breakpoint.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _BREAKPOINT_H +#define _BREAKPOINT_H #include "_global.h" @@ -46,4 +47,6 @@ int BpGetCount(BP_TYPE Type, bool EnabledOnly = false); void BpToBridge(const BREAKPOINT* Bp, BRIDGEBP* BridgeBp); void BpCacheSave(JSON Root); void BpCacheLoad(JSON Root); -void BpClear(); \ No newline at end of file +void BpClear(); + +#endif // _BREAKPOINT_H \ No newline at end of file diff --git a/src/dbg/commandline.h b/src/dbg/commandline.h index dd9bd903..e1b7db88 100644 --- a/src/dbg/commandline.h +++ b/src/dbg/commandline.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _COMMANDLINE_H +#define _COMMANDLINE_H #include "_global.h" #include "command.h" @@ -8,4 +9,6 @@ char* getCommandLineArgs(); void CmdLineCacheSave(JSON Root); void CmdLineCacheLoad(JSON Root); void copyCommandLine(const char* cmdLine); -CMDRESULT setCommandLine(); \ No newline at end of file +CMDRESULT setCommandLine(); + +#endif // _COMMANDLINE_H \ No newline at end of file diff --git a/src/dbg/comment.h b/src/dbg/comment.h index dccd0b6a..966955d4 100644 --- a/src/dbg/comment.h +++ b/src/dbg/comment.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _COMMENT_H +#define _COMMENT_H #include "_global.h" @@ -19,4 +20,6 @@ void CommentCacheLoad(JSON Root); bool CommentEnum(COMMENTSINFO* List, size_t* Size); void CommentClear(); void CommentGetList(std::vector & list); -bool CommentGetInfo(duint Address, COMMENTSINFO* info); \ No newline at end of file +bool CommentGetInfo(duint Address, COMMENTSINFO* info); + +#endif // _COMMENT_H \ No newline at end of file diff --git a/src/dbg/database.h b/src/dbg/database.h index a3dc98e8..e135b0cd 100644 --- a/src/dbg/database.h +++ b/src/dbg/database.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _DATABASE_H +#define _DATABASE_H #include "_global.h" @@ -12,4 +13,6 @@ enum class DbLoadSaveType void DbSave(DbLoadSaveType saveType); void DbLoad(DbLoadSaveType loadType); void DbClose(); -void DbSetPath(const char* Directory, const char* ModulePath); \ No newline at end of file +void DbSetPath(const char* Directory, const char* ModulePath); + +#endif // _DATABASE_H \ No newline at end of file diff --git a/src/dbg/error.h b/src/dbg/error.h index 65985171..3ec478ba 100644 --- a/src/dbg/error.h +++ b/src/dbg/error.h @@ -1,4 +1,7 @@ -#pragma once +#ifndef _ERROR_H +#define _ERROR_H void ErrorCodeInit(); -const char* ErrorCodeToName(unsigned int ErrorCode); \ No newline at end of file +const char* ErrorCodeToName(unsigned int ErrorCode); + +#endif // _ERROR_H \ No newline at end of file diff --git a/src/dbg/exception.h b/src/dbg/exception.h index 7376bde8..eeec2457 100644 --- a/src/dbg/exception.h +++ b/src/dbg/exception.h @@ -1,6 +1,9 @@ -#pragma once +#ifndef _EXCEPTION_H +#define _EXCEPTION_H #define MS_VC_EXCEPTION 0x406D1388 void ExceptionCodeInit(); -const char* ExceptionCodeToName(unsigned int ExceptionCode); \ No newline at end of file +const char* ExceptionCodeToName(unsigned int ExceptionCode); + +#endif // _EXCEPTION_H \ No newline at end of file diff --git a/src/dbg/function.h b/src/dbg/function.h index ad625fc7..fdb0228c 100644 --- a/src/dbg/function.h +++ b/src/dbg/function.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _FUNCTION_H +#define _FUNCTION_H #include "addrinfo.h" @@ -21,4 +22,6 @@ void FunctionCacheLoad(JSON Root); bool FunctionEnum(FUNCTIONSINFO* List, size_t* Size); void FunctionClear(); void FunctionGetList(std::vector & list); -bool FunctionGetInfo(duint Address, FUNCTIONSINFO* info); \ No newline at end of file +bool FunctionGetInfo(duint Address, FUNCTIONSINFO* info); + +#endif // _FUNCTION_H \ No newline at end of file diff --git a/src/dbg/label.h b/src/dbg/label.h index 90020a40..0a0b7028 100644 --- a/src/dbg/label.h +++ b/src/dbg/label.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _LABEL_H +#define _LABEL_H #include "_global.h" @@ -21,4 +22,6 @@ bool LabelEnum(LABELSINFO* List, size_t* Size); void LabelClear(); void LabelGetList(std::vector & list); bool LabelGetInfo(duint Address, LABELSINFO* info); -void LabelEnumCb(std::function cbEnum, const char* module = nullptr); \ No newline at end of file +void LabelEnumCb(std::function cbEnum, const char* module = nullptr); + +#endif // _LABEL_H \ No newline at end of file diff --git a/src/dbg/memory.h b/src/dbg/memory.h index 6fddbf0c..5bbd3e73 100644 --- a/src/dbg/memory.h +++ b/src/dbg/memory.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _MEMORY_H +#define _MEMORY_H #include "_global.h" #include "addrinfo.h" @@ -38,4 +39,6 @@ bool MemPageRightsToString(DWORD Protect, char* Rights); bool MemPageRightsFromString(DWORD* Protect, const char* Rights); bool MemFindInPage(SimplePage page, duint startoffset, const std::vector & pattern, std::vector & results, duint maxresults); bool MemFindInMap(const std::vector & pages, const std::vector & pattern, std::vector & results, duint maxresults, bool progress = true); -bool MemDecodePointer(duint* Pointer); \ No newline at end of file +bool MemDecodePointer(duint* Pointer); + +#endif // _MEMORY_H \ No newline at end of file diff --git a/src/dbg/module.h b/src/dbg/module.h index 35414e72..e6e8429f 100644 --- a/src/dbg/module.h +++ b/src/dbg/module.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _MODULE_H +#define _MODULE_H #include "_global.h" @@ -48,3 +49,5 @@ int ModPathFromAddr(duint Address, char* Path, int Size); int ModPathFromName(const char* Module, char* Path, int Size); void ModGetList(std::vector & list); bool ModAddImportToModule(duint Base, const MODIMPORTINFO & importInfo); + +#endif // _MODULE_H \ No newline at end of file diff --git a/src/dbg/patches.h b/src/dbg/patches.h index 57169770..fd92e8d2 100644 --- a/src/dbg/patches.h +++ b/src/dbg/patches.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _PATCHES_H +#define _PATCHES_H #include "_global.h" @@ -16,4 +17,6 @@ bool PatchDelete(duint Address, bool Restore); void PatchDelRange(duint Start, duint End, bool Restore); bool PatchEnum(PATCHINFO* List, size_t* Size); int PatchFile(const PATCHINFO* List, int Count, const char* FileName, char* Error); -void PatchClear(const char* Module = nullptr); \ No newline at end of file +void PatchClear(const char* Module = nullptr); + +#endif // _PATCHES_H \ No newline at end of file diff --git a/src/dbg/reference.h b/src/dbg/reference.h index d977b53a..95560d81 100644 --- a/src/dbg/reference.h +++ b/src/dbg/reference.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _REFERENCE_H +#define _REFERENCE_H #include "_global.h" #include "disasm_fast.h" @@ -24,3 +25,5 @@ typedef std::function CBPROGRESS; int RefFind(duint Address, duint Size, CBREF Callback, void* UserData, bool Silent, const char* Name, REFFINDTYPE type); int RefFindInRange(duint scanStart, duint scanSize, CBREF Callback, void* UserData, bool Silent, REFINFO & refInfo, Capstone & cp, bool initCallBack, CBPROGRESS cbUpdateProgress); + +#endif // _REFERENCE_H \ No newline at end of file diff --git a/src/dbg/symbolinfo.h b/src/dbg/symbolinfo.h index c2e90ab3..0958cb62 100644 --- a/src/dbg/symbolinfo.h +++ b/src/dbg/symbolinfo.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _SYMBOLINFO_H +#define _SYMBOLINFO_H #include "_global.h" @@ -22,4 +23,6 @@ void SymEnumImports(duint Base, SYMBOLCBDATA* pSymbolCbData); \param [out] nLine Line number. Can be null. \return true if it succeeds, false if it fails. */ -bool SymGetSourceLine(duint Cip, char* FileName, int* Line); \ No newline at end of file +bool SymGetSourceLine(duint Cip, char* FileName, int* Line); + +#endif // _SYMBOLINFO_H \ No newline at end of file diff --git a/src/dbg/thread.h b/src/dbg/thread.h index a2c61efc..b44ca60e 100644 --- a/src/dbg/thread.h +++ b/src/dbg/thread.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _THREAD_H +#define _THREAD_H #include "_global.h" #include "debugger.h" @@ -21,4 +22,6 @@ bool ThreadSetName(DWORD dwThreadId, const char* name); HANDLE ThreadGetHandle(DWORD ThreadId); DWORD ThreadGetId(HANDLE Thread); int ThreadSuspendAll(); -int ThreadResumeAll(); \ No newline at end of file +int ThreadResumeAll(); + +#endif // _THREAD_H \ No newline at end of file