GeNN
4.9.0
GPU enhanced Neuronal Networks (GeNN)
|
#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] = "" |
#define CASE_ERR | ( | code | ) | CASE_ERR_(CLRNG_ ## code, MSG_ ## code) |
#define CASE_ERR_ | ( | code, | |
msg | |||
) | case code: base = msg; break |
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
.
[in] | err | Error code. |
[in] | msg | Additional error message (format string). Can be NULL . |
[in] | ... | Additional arguments for the format string. |
char errorString[1024] = "" |