This commit is contained in:
ed
2025-02-01 18:30:43 -05:00
parent a4e836dda8
commit 7a95ada831
13 changed files with 69 additions and 6 deletions
+9
View File
@@ -1,4 +1,5 @@
#if MD_INTELLISENSE_DIRECTIVES
#pragma once
#include "cstd.h"
#endif
@@ -22,6 +23,14 @@
#endif
#endif // GEN_API
#ifndef global // Global variables
# ifdef MD_DYN_EXPORT
# define global
# else
# define global static
# endif
#endif
#ifndef internal
#define internal static
#endif
+5
View File
@@ -1,3 +1,8 @@
#ifdef MD_INTELLISENSE_DIRECTIVES
#pragma once
#include "rarena.h"
#endif
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
+1
View File
@@ -1,4 +1,5 @@
#if MD_INTELLISENSE_DIRECTIVES
#pragma once
#include "base_types.h"
#endif
+1 -1
View File
@@ -71,7 +71,7 @@ void* alloc( AllocatorInfo a, SSIZE size );
void* alloc_align( AllocatorInfo a, SSIZE size, SSIZE alignment );
//! Free allocated memory.
void allocator_free( AllocatorInfo a, void* ptr );
void alloc_free( AllocatorInfo a, void* ptr );
//! Free all memory allocated by an allocator.
void free_all( AllocatorInfo a );
@@ -1,9 +1,11 @@
#ifdef MD_INTELLISENSE_DIRECTIVES
#pragma once
#include
#endif
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#ifndef OS_CORE_LINUX_H
#define OS_CORE_LINUX_H
////////////////////////////////
//~ rjf: Includes
@@ -130,5 +132,3 @@ internal void os_lnx_entity_release(OS_LNX_Entity *entity);
//~ rjf: Thread Entry Point
internal void *os_lnx_thread_entry_point(void *ptr);
#endif // OS_CORE_LINUX_H
+48
View File
@@ -15,6 +15,24 @@
// 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 U16, MD_U16
word U32, MD_U32
@@ -40,10 +58,40 @@ word B32, MD_B32
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 String8, MD_String8
// metadesk module
// word MsgKind, MD_MsgKind