platformAPI.hpp File Reference
#include <vector>
#include "indep/helper/buildFeature.hpp"

Go to the source code of this file.

Enumerations

enum  consoleColor {
  CONSOLE_COLOR_START = 0 , BLACK = CONSOLE_COLOR_START , BLUE , GREEN ,
  CYAN , RED , MAGENTA , BROWN ,
  LIGHTGRAY , DARKGRAY , LIGHTBLUE , LIGHTGREEN ,
  LIGHTCYAN , LIGHTRED , LIGHTMAGENTA , YELLOW ,
  CONSOLE_COLOR_END , WHITE = CONSOLE_COLOR_END
}
 

Functions

const string & by::platformAPI::foreColor (consoleColor fore)
 
const string & by::platformAPI::backColor (consoleColor back)
 
string by::platformAPI::createNowTime (const string &strftime_format)
 
vector< string > by::platformAPI::callstack ()
 
string by::platformAPI::demangle (const nchar *org)
 
string by::platformAPI::filterDemangle (const nchar *org)
 
string by::platformAPI::getExecPath ()
 
string by::platformAPI::exec (const string &cmd)
 
nuint64 by::platformAPI::getNowMs ()
 
string by::platformAPI::toAddrId (const void *inst)
 
void by::platformAPI::log (const std::string &msg)
 
void by::platformAPI::log (const std::string *it) BY_SIDE_FUNC(log)
 
std::string by::platformAPI::format (const nchar *fmt,...)
 
std::string by::platformAPI::format (const nchar *fmt, va_list args)
 
std::string by::platformAPI::format (const std::string &fmt, va_list args)
 
std::string by::platformAPI::format (const std::string *fmt, va_list args) BY_SIDE_FUNC(fmt
 
void by::platformAPI::crash (const nchar *msg,...)
 
void by::platformAPI::crash (const std::string &msg, va_list args)
 
void by::platformAPI::crash (const std::string *msg, va_list args) BY_SIDE_FUNC(msg
 
void by::platformAPI::crash (const std::string &msg)
 
void by::platformAPI::crash (const std::string *it) BY_SIDE_FUNC(crash)