2007-05-02 01:07:00 +00:00
|
|
|
/*
|
2008-03-18 04:27:02 +00:00
|
|
|
* $Id: main.h 132 2008-03-17 10:27:02Z baconevi $
|
|
|
|
*
|
|
|
|
* {License}
|
2007-05-02 01:07:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASE_UTL_MAIN_H_
|
|
|
|
#define _ASE_UTL_MAIN_H_
|
|
|
|
|
|
|
|
#include <ase/cmn/types.h>
|
|
|
|
#include <ase/cmn/macros.h>
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
#include <tchar.h>
|
|
|
|
#define ase_main _tmain
|
2007-05-18 01:21:00 +00:00
|
|
|
typedef ase_char_t ase_achar_t;
|
2007-05-02 01:07:00 +00:00
|
|
|
#else
|
2007-05-18 01:21:00 +00:00
|
|
|
#define ase_main main
|
|
|
|
typedef ase_mchar_t ase_achar_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2007-05-18 01:21:00 +00:00
|
|
|
int ase_runmain (int argc, ase_achar_t* argv[], int(*mf) (int,ase_char_t*[]));
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2007-05-18 01:21:00 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2007-05-02 01:07:00 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|