Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_module.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_module.h"
Include dependency graph for ex_module.c:

Go to the source code of this file.

Macros

#define EX_LIBRARY   "libm.so.6"
 the maths library, by its versioned name: the unversioned .so is a development symlink a runtime system may not have
#define EX_SYMBOL   "cos"
 a function whose answer is known

Functions

static void expect_true (const char *what, int ok)
 record one check
int main (int argc, char **argv)
static int parse_args (int argc, char **argv)
 read -V LOGLEVEL

Variables

static int failures = 0
static int log_level = 3

Macro Definition Documentation

◆ EX_LIBRARY

#define EX_LIBRARY   "libm.so.6"

the maths library, by its versioned name: the unversioned .so is a development symlink a runtime system may not have

Definition at line 34 of file ex_module.c.

◆ EX_SYMBOL

#define EX_SYMBOL   "cos"

a function whose answer is known

Examples
ex_module.c.

Definition at line 36 of file ex_module.c.

Referenced by main().

Function Documentation

◆ expect_true()

void expect_true ( const char * what,
int ok )
static

record one check

Definition at line 43 of file ex_module.c.

References failures, LOG_ERR, LOG_INFO, and n_log.

◆ main()

int main ( int argc,
char ** argv )

◆ parse_args()

int parse_args ( int argc,
char ** argv )
static

read -V LOGLEVEL

Examples
ex_module.c.

Definition at line 53 of file ex_module.c.

References log_level.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 40 of file ex_module.c.

◆ log_level

int log_level = 3
static

Definition at line 39 of file ex_module.c.