sourcemod/sourcepawn/compiler/pawncc.cpp

44 lines
667 B
C++
Raw Normal View History

#include <stdio.h>
#include <setjmp.h>
#include <assert.h>
#include <string.h>
#include "memfile.h"
#include "osdefs.h"
2010-05-11 10:46:55 +02:00
#if defined LINUX || defined DARWIN
2009-08-30 09:21:42 +02:00
#include <unistd.h>
#elif defined WIN32
#include <io.h>
#endif
#include "sc.h"
int main(int argc, char *argv[])
{
return pc_compile(argc,argv);
}
2014-08-22 09:41:32 +02:00
#if defined __linux__ || defined __APPLE__
extern "C" void __cxa_pure_virtual(void)
{
}
void *operator new(size_t size)
{
return malloc(size);
}
void *operator new[](size_t size)
{
return malloc(size);
}
void operator delete(void *ptr)
{
free(ptr);
}
void operator delete[](void * ptr)
{
free(ptr);
}
#endif