mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Reorder allocator list
This commit is contained in:
parent
babfc2395e
commit
60403e6b51
3 changed files with 5 additions and 5 deletions
|
@ -741,6 +741,9 @@ namespace IDE.Compiler
|
|||
String freeLinkName;
|
||||
switch (options.mAllocType)
|
||||
{
|
||||
case .CRT:
|
||||
mallocLinkName = "malloc";
|
||||
freeLinkName = "free";
|
||||
case .Debug:
|
||||
optionFlags |= .DebugAlloc;
|
||||
mallocLinkName = "";
|
||||
|
@ -748,9 +751,6 @@ namespace IDE.Compiler
|
|||
case .Stomp:
|
||||
mallocLinkName = "StompAlloc";
|
||||
freeLinkName = "StompFree";
|
||||
case .CRT:
|
||||
mallocLinkName = "malloc";
|
||||
freeLinkName = "free";
|
||||
case .JEMalloc, .JEMalloc_Debug:
|
||||
mallocLinkName = "je_malloc";
|
||||
freeLinkName = "je_free";
|
||||
|
|
|
@ -214,9 +214,9 @@ namespace IDE
|
|||
|
||||
public enum AllocType
|
||||
{
|
||||
CRT,
|
||||
Debug,
|
||||
Stomp,
|
||||
CRT,
|
||||
JEMalloc,
|
||||
JEMalloc_Debug,
|
||||
TCMalloc,
|
||||
|
|
|
@ -734,7 +734,7 @@ namespace IDE.ui
|
|||
AddPropertiesItem(category, "Incremental Build", "mIncrementalBuild");
|
||||
AddPropertiesItem(category, "Intermediate Type", "mIntermediateType");
|
||||
var (allocCategory, allocPropEntry) = AddPropertiesItem(category, "Memory Allocator", "mAllocType",
|
||||
scope String[] ("Debug", "Stomp (Debug)", "CRT", "JEMalloc", "JEMalloc Debug", "TCMalloc", "TCMalloc Debug"));
|
||||
scope String[] ("CRT", "Debug", "Stomp (Paranoid)", "JEMalloc", "JEMalloc Debug", "TCMalloc", "TCMalloc Debug"));
|
||||
var (mallocItem, mallocPropEntry) = AddPropertiesItem(allocCategory, "Malloc", "mAllocMalloc");
|
||||
var (freeItem, freePropEntry) = AddPropertiesItem(allocCategory, "Free", "mAllocFree");
|
||||
allocPropEntry.mOnUpdate.Add(new () =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue