Sha256: a70b6465066a03dc0dab6d2bc92574761c068c8cf431b0a546637c2ab803ad1d
Contents?: true
Size: 1.14 KB
Versions: 18
Compression:
Stored size: 1.14 KB
Contents
#include "common/RhoPort.h" #include "common/RhoStd.h" #include "common/RhodesApp.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(); } rho::StringW rho::common::CRhodesApp::getAppNameW() { return L"Rhodes"; } #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
18 entries across 18 versions & 1 rubygems