Newer
Older
c-interpreter / modules / libkc / include / kc.h
Nomura Kei on 8 Jun 2023 1 KB UPDATE
////////////////////////////////////////////////////////////////////////////////
//
// KC Header File
//
#ifndef KC_H
#define KC_H

// =============================================================================
//  共通定義
// =============================================================================
#define UNUSED_VARIABLE(val) (void)(val)


#if defined(__cplusplus) && (__cplusplus >= 201103L)
// =============================================================================
//  C++11
// =============================================================================
#include <cstdint>

#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
// =============================================================================
//  C11
// =============================================================================
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#define thread_local _Thread_local
#define nullptr NULL

#else
// =============================================================================
//  ERROR
// =============================================================================
#error "suuports C11/C++1 or later"


#endif	// C++11, C11, ERROR

#endif	// KC_H