Cthulhu  0.2.10
Cthulhu compiler collection
main.c File Reference
#include "base/util.h"
#include "setup/setup.h"
#include "format/colour.h"
#include "base/log.h"
#include "cthulhu/events/events.h"
#include "cthulhu/broker/broker.h"
#include "arena/arena.h"
#include "io/console.h"
#include "memory/memory.h"
#include "notify/notify.h"
#include "format/notify.h"
#include "scan/node.h"
#include "support/loader.h"
#include "cthulhu/check/check.h"
#include "cthulhu/ssa/ssa.h"
#include "base/panic.h"
#include "core/macros.h"
#include "std/map.h"
#include "std/str.h"
#include "std/vector.h"
#include "fs/fs.h"
#include "io/io.h"
#include "os/os.h"
#include "argparse/argparse.h"
#include "support/support.h"
#include <stddef.h>
#include <stdlib.h>
Include dependency graph for main.c:

Go to the source code of this file.

Data Structures

struct  user_ptr_t
 
struct  user_arena_t
 
struct  arena_user_wrap_t
 

Macros

#define CHECK_REPORTS(reports, msg)
 
#define CHECK_LOG(logger, fmt)
 
#define CC_FLAGS   "-Werror -Wno-format-contains-nul -Wno-unused-variable -Wno-unused-function"
 

Functions

 CT_STATIC_ASSERT (sizeof(user_ptr_t)==16, "user_ptr_t must be 16 byte aligned")
 
int run_test_harness (int argc, const char **argv, arena_t *arena)
 
int main (int argc, const char **argv)
 

Macro Definition Documentation

◆ CC_FLAGS

#define CC_FLAGS   "-Werror -Wno-format-contains-nul -Wno-unused-variable -Wno-unused-function"

◆ CHECK_LOG

#define CHECK_LOG (   logger,
  fmt 
)
Value:
do \
{ \
int log_ok = check_reports(logger, report_config, fmt); \
if (log_ok != CT_EXIT_OK) \
{ \
return log_ok; \
} \
} while (0)
#define CT_EXIT_OK
no user errors or internal errors
Definition: macros.h:91
CT_NODISCARD STA_FORMAT_STRING const char * fmt
Definition: str.h:68

Definition at line 199 of file main.c.

◆ CHECK_REPORTS

#define CHECK_REPORTS (   reports,
  msg 
)
Value:
do \
{ \
int err = end_reports(reports, msg, kReportConfig); \
if (err != 0) \
{ \
return err; \
} \
} while (0)

Definition at line 39 of file main.c.

Function Documentation

◆ CT_STATIC_ASSERT()

CT_STATIC_ASSERT ( sizeof(user_ptr_t = =16,
"user_ptr_t must be 16 byte aligned"   
)

◆ main()

int main ( int  argc,
const char **  argv 
)

Definition at line 395 of file main.c.

◆ run_test_harness()

int run_test_harness ( int  argc,
const char **  argv,
arena_t arena 
)

Definition at line 209 of file main.c.