GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
private.c File Reference
#include <clRNG/clRNG.h>
#include "private.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>

Macros

#define CASE_ERR_(code, msg)   case code: base = msg; break
 
#define CASE_ERR(code)   CASE_ERR_(CLRNG_ ## code, MSG_ ## code)
 

Functions

clrngStatus clrngSetErrorString (cl_int err, const char *msg,...)
 Set the current error string. More...
 

Variables

char errorString [1024] = ""
 

Macro Definition Documentation

◆ CASE_ERR

#define CASE_ERR (   code)    CASE_ERR_(CLRNG_ ## code, MSG_ ## code)

◆ CASE_ERR_

#define CASE_ERR_ (   code,
  msg 
)    case code: base = msg; break

Function Documentation

◆ clrngSetErrorString()

clrngStatus clrngSetErrorString ( cl_int  err,
const char *  msg,
  ... 
)

Set the current error string.

The error string will be constructed based on the error code err and on the optional message msg.

Parameters
[in]errError code.
[in]msgAdditional error message (format string). Can be NULL.
[in]...Additional arguments for the format string.
Returns
The value of err (for convenience).

Variable Documentation

◆ errorString

char errorString[1024] = ""