summaryrefslogtreecommitdiff
path: root/ldmicro/miscutil.cpp
diff options
context:
space:
mode:
authorNatsuDrag92018-06-20 10:11:49 +0530
committerNatsuDrag92018-06-20 10:11:49 +0530
commite25480293be793d0ab8c78038ff9ef6aa27a8c50 (patch)
tree9f59958647e98f1dfbba5d6dd81d4376fbe9cda4 /ldmicro/miscutil.cpp
parent7ee6d232a84e011ce51313912fa547058985987c (diff)
downloadLDMicroGtk-e25480293be793d0ab8c78038ff9ef6aa27a8c50.tar.gz
LDMicroGtk-e25480293be793d0ab8c78038ff9ef6aa27a8c50.tar.bz2
LDMicroGtk-e25480293be793d0ab8c78038ff9ef6aa27a8c50.zip
NewProgram () Segmentation fault
Diffstat (limited to 'ldmicro/miscutil.cpp')
-rw-r--r--ldmicro/miscutil.cpp6
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)