00001 // @(#)root/main:$Id: cppmain.cxx 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Masaharu Goto 16/05/2000 00003 /* /% C++ %/ */ 00004 /*********************************************************************** 00005 * cint (C/C++ interpreter) 00006 ************************************************************************ 00007 * Source file main/G__cppmain.C 00008 ************************************************************************ 00009 * Description: 00010 * C++ version main function 00011 ************************************************************************ 00012 * Copyright(c) 1995~1999 Masaharu Goto (MXJ02154@niftyserve.or.jp) 00013 * 00014 * Permission to use, copy, modify and distribute this software and its 00015 * documentation for non-commercial purpose is hereby granted without fee, 00016 * provided that the above copyright notice appear in all copies and 00017 * that both that copyright notice and this permission notice appear 00018 * in supporting documentation. The author makes no 00019 * representations about the suitability of this software for any 00020 * purpose. It is provided "as is" without express or implied warranty. 00021 ************************************************************************/ 00022 #include <stdio.h> 00023 00024 extern "C" { 00025 extern void G__setothermain(int othermain); 00026 extern int G__main(int argc,char **argv); 00027 } 00028 00029 int main(int argc,char **argv) 00030 { 00031 G__setothermain(0); 00032 return(G__main(argc,argv)); 00033 }