Arax -8d09c51940345c86062e8ef2427c705ae66e5926
A Runtime Framework for Decoupling Applications from Heterogeneous Accelerators
Loading...
Searching...
No Matches
arax_assert.c File Reference
#include "arax_assert.h"
#include "core/arax_ptr.h"
#include "core/arax_object.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <execinfo.h>
#include "system.h"
+ Include dependency graph for arax_assert.c:

Go to the source code of this file.

Macros

#define ARAX_FILE_PREFIX_LEN   (strlen(__FILE__) - 23)
 

Functions

void _arax_assert (int fail, const char *expr, const char *file, int line)
 
void _arax_assert_obj (void *obj, int type)
 

Macro Definition Documentation

◆ ARAX_FILE_PREFIX_LEN

#define ARAX_FILE_PREFIX_LEN   (strlen(__FILE__) - 23)

Definition at line 10 of file arax_assert.c.

Referenced by _arax_assert().

Function Documentation

◆ _arax_assert()

void _arax_assert ( int fail,
const char * expr,
const char * file,
int line )

Definition at line 12 of file arax_assert.c.

References ARAX_FILE_PREFIX_LEN, and system_backtrace().

+ Here is the call graph for this function:

◆ _arax_assert_obj()

void _arax_assert_obj ( void * obj,
int type )

Definition at line 21 of file arax_assert.c.

References arax_assert, arax_ptr_valid(), and arax_object_s::type.

+ Here is the call graph for this function: