Cthulhu  0.2.10
Cthulhu compiler collection
error.c File Reference
#include "os/core.h"
#include "os_common.h"
#include "std/str.h"
#include "base/util.h"
#include "core/macros.h"
#include "core/win32.h"
Include dependency graph for error.c:

Go to the source code of this file.

Macros

#define FORMAT_FLAGS   (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS)
 

Functions

STA_DECL CT_LOCAL os_error_t impl_last_error (void)
 
CT_LOCAL size_t impl_error_length (os_error_t error)
 
CT_LOCAL size_t impl_error_string (os_error_t error, char *buffer, size_t size)
 

Macro Definition Documentation

◆ FORMAT_FLAGS

#define FORMAT_FLAGS   (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS)

Definition at line 12 of file error.c.

Function Documentation

◆ impl_error_length()

CT_LOCAL size_t impl_error_length ( os_error_t  error)

Definition at line 32 of file error.c.

◆ impl_error_string()

CT_LOCAL size_t impl_error_string ( os_error_t  error,
char *  buffer,
size_t  size 
)

Definition at line 40 of file error.c.

◆ impl_last_error()

STA_DECL CT_LOCAL os_error_t impl_last_error ( void  )

Definition at line 15 of file error.c.