You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
The RAD symbol library support many debug info formats such as pdb and elf variants. It also supports multithreaded debug info parsing and symbol lookups. Compiled libraries for Windows and headers. #rb stefan.boberg [CL 15872888 by Johan Berg in ue5-main branch]
45 lines
931 B
C
45 lines
931 B
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
#if !defined(SYMS_PLATFORM_INCLUDE_H)
|
|
#define SYMS_PLATFORM_INCLUDE_H
|
|
|
|
SYMS_API void
|
|
syms_init_os(void);
|
|
|
|
SYMS_API SymsUMM
|
|
syms_get_pagesize(void);
|
|
|
|
SYMS_API void *
|
|
syms_reserve_virtual_memory(SymsUMM size);
|
|
|
|
SYMS_API syms_bool
|
|
syms_commit_virtual_memory(void *base, SymsUMM size);
|
|
|
|
SYMS_API void
|
|
syms_free_virtual_memory(void *base, SymsUMM size);
|
|
|
|
SYMS_INLINE void *
|
|
syms_virtual_alloc(SymsUMM size)
|
|
{
|
|
void *base = syms_reserve_virtual_memory(size);
|
|
if (!syms_commit_virtual_memory(base, size)) {
|
|
SYMS_ASSERT_FAILURE_PARANOID("unable to commit virtual memory");
|
|
base = 0;
|
|
}
|
|
return base;
|
|
}
|
|
|
|
typedef struct
|
|
{
|
|
void *base; // pointer to first byte in the file
|
|
SymsUMM size;
|
|
} SymsEntireFile;
|
|
|
|
SYMS_API SymsEntireFile
|
|
syms_read_entire_file(const char *file_name);
|
|
|
|
SYMS_API void
|
|
syms_free_entire_file(SymsEntireFile *file);
|
|
|
|
#endif // SYMS_PLATFORM_INCLUDE_H
|
|
|