01 // ryDebug.cpp : Defines the entry point for the console application.
02 //
03
04 #include "stdafx.h"
05 #include "ryDiagnostics.h"
06
07 int main(int argc, char* argv[])
08 {
09 char* szTestData[] = {
10 "abcdefghijklmnopqrstuvwxyz 01234567890+-.!@#$%^&*()",
11 "ABCDEFGHIJKLMNOPQRSTUVWXYZ 01234567890+-.!@#$%^&*()"
12 };
13
14 ryInit(0, 0);
15
16 char* p1 = (char*)malloc(10);
17 char* p2 = new char[99];
18 strcpy(p2, "This string will not be deleted!");
19
20 free(p1);
21
22 ryLog("Test log message");
23 ryLog1("Hello %s", "World!");
24
25 int n = -1;
26 int m = -2;
27 ryAssert(n == m);
28
29 for(int i=0; i < 2; ++i) {
30 int nSize = strlen(szTestData[i]);
31 ryMemDump(szTestData[i], nSize);
32 }
33 return 0;
34 }
Colorized by: CarlosAg.CodeColorizer