#include "CFrontError.hpp"
#include <cstdlib>
#include <cstring>
#include "config.h"
Go to the source code of this file.
Defines | |
#define | MAX_TOKEN_LEN 256 |
#define | MAX_MESSAGE_LEN 1024 |
Functions | |
void | ctrump_log (struct ctrump_loginfo *logInfo, int logLevel, enum ctrump_error_code ecode, const char *message, const char *formatStr, unsigned int numTokens, const char **tokens, const char *filename, int line, int column) |
void | ctrump_free_log (struct ctrump_loginfo *logInfo) |
void | ctrump_report_log (struct ctrump_loginfo *logInfo) |
void | ctrump_add_log (Logs *logs, int logLevel, enum ctrump_error_code code, const char *fmt, const cfront::Location &location,...) |
char * | ctrump_get_loginfo_message (struct ctrump_loginfo *error) |
#define MAX_MESSAGE_LEN 1024 |
Definition at line 56 of file CFrontError.cpp.
Referenced by ctrump_add_log(), and ctrump_get_loginfo_message().
#define MAX_TOKEN_LEN 256 |
void ctrump_add_log | ( | Logs * | logs, | |
int | logLevel, | |||
enum ctrump_error_code | code, | |||
const char * | fmt, | |||
const cfront::Location & | location, | |||
... | ||||
) |
Definition at line 110 of file CFrontError.cpp.
References cfront::Location::column, ctrump_log(), CTRUMP_LOGLEVEL_ERROR, cfront::Location::filePath, cfront::Location::line, MAX_MESSAGE_LEN, and MAX_TOKEN_LEN.
void ctrump_free_log | ( | struct ctrump_loginfo * | logInfo | ) |
Definition at line 81 of file CFrontError.cpp.
References ctrump_loginfo::message, ctrump_loginfo::numTokens, and ctrump_loginfo::tokens.
char* ctrump_get_loginfo_message | ( | struct ctrump_loginfo * | error | ) |
Definition at line 147 of file CFrontError.cpp.
References MAX_MESSAGE_LEN, and ctrump_loginfo::message.
Referenced by ctrump_report_log(), and error_get_message().
void ctrump_log | ( | struct ctrump_loginfo * | logInfo, | |
int | logLevel, | |||
enum ctrump_error_code | ecode, | |||
const char * | message, | |||
const char * | formatStr, | |||
unsigned int | numTokens, | |||
const char ** | tokens, | |||
const char * | filename, | |||
int | line, | |||
int | column | |||
) |
Definition at line 60 of file CFrontError.cpp.
References ctrump_loginfo::code, ctrump_loginfo::column, ctrump_report_log(), ctrump_loginfo::filename, ctrump_loginfo::formatStr, ctrump_loginfo::line, ctrump_loginfo::logLevel, ctrump_loginfo::message, ctrump_loginfo::numTokens, and ctrump_loginfo::tokens.
Referenced by ctrump_add_log().
void ctrump_report_log | ( | struct ctrump_loginfo * | logInfo | ) |
Definition at line 96 of file CFrontError.cpp.
References ctrump_loginfo::column, ctrump_get_loginfo_message(), CTRUMP_LOGLEVEL_ERROR, CTRUMP_LOGLEVEL_WARNING, ctrump_loginfo::filename, ctrump_loginfo::line, and ctrump_loginfo::logLevel.
Referenced by ctrump_log().