Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c1ad5e4b0b
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (35 sloc) 1.88 kb
// Written by Fabian "ryg" Giesen.
// I hereby place this code in the public domain.
#ifndef __STARTCONSOLE_HPP__
#define __STARTCONSOLE_HPP__
/****************************************************************************/
/*** ***/
/*** Forwards ***/
/*** ***/
/****************************************************************************/
/****************************************************************************/
/*** ***/
/*** Main Program ***/
/*** ***/
/****************************************************************************/
// implement this to write a program
sInt sAppMain(sInt argc,sChar **argv);
/****************************************************************************/
struct sSystem_
{
// init/exit/debug
void Log(sChar *); // print out debug string
sNORETURN void Abort(sChar *msg); // terminate now
void Tag(); // called by broker (in a direct hackish fashion)
// console io
void PrintF(sChar *format,...);
// file
sU8 *LoadFile(sChar *name,sInt &size); // load file entirely, return size
sU8 *LoadFile(sChar *name); // load file entirely
sChar *LoadText(sChar *name); // load file entirely and add trailing zero
sBool SaveFile(sChar *name,sU8 *data,sInt size); // save file entirely
// misc
sInt GetTime();
};
extern sSystem_ *sSystem;
#endif
Jump to Line
Something went wrong with that request. Please try again.