diff options
author | NatsuDrag9 | 2018-06-20 10:11:49 +0530 |
---|---|---|
committer | NatsuDrag9 | 2018-06-20 10:11:49 +0530 |
commit | e25480293be793d0ab8c78038ff9ef6aa27a8c50 (patch) | |
tree | 9f59958647e98f1dfbba5d6dd81d4376fbe9cda4 /ldmicro/miscutil.cpp | |
parent | 7ee6d232a84e011ce51313912fa547058985987c (diff) | |
download | LDMicroGtk-e25480293be793d0ab8c78038ff9ef6aa27a8c50.tar.gz LDMicroGtk-e25480293be793d0ab8c78038ff9ef6aa27a8c50.tar.bz2 LDMicroGtk-e25480293be793d0ab8c78038ff9ef6aa27a8c50.zip |
NewProgram () Segmentation fault
Diffstat (limited to 'ldmicro/miscutil.cpp')
-rw-r--r-- | ldmicro/miscutil.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ldmicro/miscutil.cpp b/ldmicro/miscutil.cpp index 092f606..8f63398 100644 --- a/ldmicro/miscutil.cpp +++ b/ldmicro/miscutil.cpp @@ -23,9 +23,11 @@ #include "linuxUI.h" #include <stdio.h> #include <stdlib.h> - +#include <iostream> #include "ldmicro.h" +using namespace std; + // We should display messages to the user differently if we are running // interactively vs. in batch (command-line) mode. BOOL RunningInBatchMode = FALSE; @@ -158,8 +160,10 @@ void CheckHeap(char *file, int line) //----------------------------------------------------------------------------- void *CheckMalloc(size_t n) { + cout << "Inside CheckMalloc" << "\n"; ok(); void *p = HeapAlloc(MainHeap, HEAP_ZERO_MEMORY, n); + cout << "Exiting CheckMalloc" << "\n"; return p; } void CheckFree(void *p) |