Sha256: 93ca18a0fb4f1cd5b9bc8a07ecc152e75a001f73726495bbf9dfa80f144179b6
Contents?: true
Size: 1.04 KB
Versions: 33
Compression:
Stored size: 1.04 KB
Contents
#include "common/RhoPort.h" #include "common/RhoStd.h" #ifdef OS_WINDOWS #include <atlstr.h> #endif #ifdef OS_WINDOWS extern "C" const char* rho_native_rhopath() { static rho::String m_strRootPath; if ( m_strRootPath.length() == 0 ) { char rootpath[MAX_PATH]; int len; if ( (len = GetModuleFileNameA(NULL,rootpath,MAX_PATH)) == 0 ) strcpy(rootpath,"."); else { while( !(rootpath[len] == '\\' || rootpath[len] == '/') ) len--; rootpath[len+1]=0; } m_strRootPath = rootpath; m_strRootPath += "rho/"; } return m_strRootPath.c_str(); } #endif int rho_testvprintf(const char * fmt, va_list args) { #ifdef OS_WINDOWS CAtlStringA str; str.FormatV(fmt,args); OutputDebugStringA(str); #endif //OS_WINDOWS return vfprintf(stdout,fmt, args); } int rho_testprintf(const char * fmt, ...) { va_list args; va_start(args, fmt); int nres = rho_testvprintf(fmt, args); va_end(args); return nres; }
Version data entries
33 entries across 33 versions & 1 rubygems