// --------------------------------------------------------------------------------------------
/*
	File: engine_test.cpp

	Game: Soniro
	Created: 14/01/2012
	Last update: 14/01/2012 - Alpha Release 1
	Language: SCBSL C++ (Skykill's C Bitcode Scripting Language)

	License: 

	Copyright © 2011-2012 Skykill. All rights reserved

	Author: Skykill
	Description: Contains the header for the LLVM assembly code 
				 interpreter
	Change History: 
	[Note: note for this file.
           note for this file.]
*/
// --------------------------------------------------------------------------------------------
#include <string>
#include <stdio.h>

std::string getPrintText();

class TestClass1
{
public:
	static void test1();
	void test2(std::string s);
	void test3(const char* c);
} testclass1;

bool Init()
{
    printf("\n\nStarting bitcode...\n");
 
    //This work on x86 and x64 using LLVM in Release, but crash in x86 Debug
    printf("Result from getPrintText(): %s", getPrintText().data());
    printf("\ngetPrintText() finished!\n");
 
    //This work on x64 using LLVM in Release, but crash in x86 both Release and Debug
    //testclass1.test2(std::string("HI! testclass1"));
    TestClass1 _testclass1;
    _testclass1.test2(std::string("Hello world!"));
 
    printf("\nEnding bitcode...\n\n");
    return true;
}