mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-07 16:18:49 +00:00
progress
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#if MD_INTELLISENSE_DIRECTIVES
|
#if MD_INTELLISENSE_DIRECTIVES
|
||||||
|
#pragma once
|
||||||
#include "cstd.h"
|
#include "cstd.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -22,6 +23,14 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif // GEN_API
|
#endif // GEN_API
|
||||||
|
|
||||||
|
#ifndef global // Global variables
|
||||||
|
# ifdef MD_DYN_EXPORT
|
||||||
|
# define global
|
||||||
|
# else
|
||||||
|
# define global static
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef internal
|
#ifndef internal
|
||||||
#define internal static
|
#define internal static
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
#ifdef MD_INTELLISENSE_DIRECTIVES
|
||||||
|
#pragma once
|
||||||
|
#include "rarena.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#if MD_INTELLISENSE_DIRECTIVES
|
#if MD_INTELLISENSE_DIRECTIVES
|
||||||
|
#pragma once
|
||||||
#include "base_types.h"
|
#include "base_types.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ void* alloc( AllocatorInfo a, SSIZE size );
|
|||||||
void* alloc_align( AllocatorInfo a, SSIZE size, SSIZE alignment );
|
void* alloc_align( AllocatorInfo a, SSIZE size, SSIZE alignment );
|
||||||
|
|
||||||
//! Free allocated memory.
|
//! Free allocated memory.
|
||||||
void allocator_free( AllocatorInfo a, void* ptr );
|
void alloc_free( AllocatorInfo a, void* ptr );
|
||||||
|
|
||||||
//! Free all memory allocated by an allocator.
|
//! Free all memory allocated by an allocator.
|
||||||
void free_all( AllocatorInfo a );
|
void free_all( AllocatorInfo a );
|
||||||
|
|||||||
+5
-5
@@ -1,9 +1,11 @@
|
|||||||
|
#ifdef MD_INTELLISENSE_DIRECTIVES
|
||||||
|
#pragma once
|
||||||
|
#include
|
||||||
|
#endif
|
||||||
|
|
||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
#ifndef OS_CORE_LINUX_H
|
|
||||||
#define OS_CORE_LINUX_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Includes
|
//~ rjf: Includes
|
||||||
|
|
||||||
@@ -130,5 +132,3 @@ internal void os_lnx_entity_release(OS_LNX_Entity *entity);
|
|||||||
//~ rjf: Thread Entry Point
|
//~ rjf: Thread Entry Point
|
||||||
|
|
||||||
internal void *os_lnx_thread_entry_point(void *ptr);
|
internal void *os_lnx_thread_entry_point(void *ptr);
|
||||||
|
|
||||||
#endif // OS_CORE_LINUX_H
|
|
||||||
@@ -15,6 +15,24 @@
|
|||||||
|
|
||||||
// base module
|
// base module
|
||||||
|
|
||||||
|
word global, md_global
|
||||||
|
word internal, md_internal
|
||||||
|
word local_persist, md_local_persist
|
||||||
|
word thread_static, md_thread_static
|
||||||
|
|
||||||
|
word likely, md_likely
|
||||||
|
word unlikely, md_unlikely
|
||||||
|
|
||||||
|
word ccast, word md_ccast
|
||||||
|
word pcast, word md_pcast
|
||||||
|
word rcast, word md_rcast
|
||||||
|
word scast, word md_scast
|
||||||
|
|
||||||
|
word typeof, word md_typeof
|
||||||
|
|
||||||
|
word enum_underlying, md_enum_underlying
|
||||||
|
word nullptr, md_nullptr
|
||||||
|
|
||||||
word U8, MD_U8
|
word U8, MD_U8
|
||||||
word U16, MD_U16
|
word U16, MD_U16
|
||||||
word U32, MD_U32
|
word U32, MD_U32
|
||||||
@@ -40,10 +58,40 @@ word B32, MD_B32
|
|||||||
|
|
||||||
word swap, md_swap
|
word swap, md_swap
|
||||||
|
|
||||||
|
word readonly, md_readonly
|
||||||
|
|
||||||
|
word AllocType, MD_AllocType
|
||||||
|
word AllocatorProc, MD_AllocatorProc
|
||||||
|
word AllocatorInfo, MD_AllocatorInfo
|
||||||
|
word AllocFlag, MD_AllocFlag
|
||||||
|
|
||||||
|
word alloc, md_alloc
|
||||||
|
word alloc_align, md_alloc_align
|
||||||
|
word free_mem, md_free_mem
|
||||||
|
word free_all, md_free_all
|
||||||
|
word resize, md_resize
|
||||||
|
word resize_align, md_resize_align
|
||||||
|
|
||||||
|
word default_resize_align, md_default_resize_align
|
||||||
|
|
||||||
|
word alloc_item, md_alloc_item
|
||||||
|
word alloc_array, md_alloc_array
|
||||||
|
|
||||||
|
word heap_stats_init, md_heap_stats_init
|
||||||
|
word heap_stats_used_mem, md_heap_stats_used_mem
|
||||||
|
word heap_stats_alloc_count, md_heap_stats_alloc_count
|
||||||
|
word heap_stats_check, md_heap_stats_check
|
||||||
|
word heap_allocator_proc, md_heap_allocator_proc
|
||||||
|
word heap, md_heap
|
||||||
|
|
||||||
|
word malloc, md_malloc
|
||||||
|
word mfree, md_mfree
|
||||||
|
|
||||||
word Rng1U64, MD_Rng1U64
|
word Rng1U64, MD_Rng1U64
|
||||||
|
|
||||||
word String8, MD_String8
|
word String8, MD_String8
|
||||||
|
|
||||||
|
|
||||||
// metadesk module
|
// metadesk module
|
||||||
|
|
||||||
// word MsgKind, MD_MsgKind
|
// word MsgKind, MD_MsgKind
|
||||||
|
|||||||
Reference in New Issue
Block a user