aboutsummaryrefslogtreecommitdiff
path: root/include/compiler_options.h
blob: e9ac6e2d8a06a4daa89f355df177b206e0506c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef AMALGAM_COMPILER_OPTIONS_H
#define AMALGAM_COMPILER_OPTIONS_H

typedef void(*amal_compiler_error_callback)(const char *err_msg, int err_msg_len, void *userdata);

typedef struct {
    amal_compiler_error_callback error_callback;
    void *error_callback_userdata;
    /* Number of threads to use. If 0, use the number of threads available on the system */
    unsigned int num_threads;
} amal_compiler_options;

#endif