/* * Brickworks * * Copyright (C) 2022 Orastron Srl unipersonale * * Brickworks is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * Brickworks is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * * File author: Stefano D'Angelo */ /*! * module_type {{{ foundation }}} * version {{{ 0.1.0 }}} * requires {{{ bw_config }}} * description {{{ * A common header to make sure that a bunch of basic definitions are * available and consistent for all Brickworks modules. * }}} * changelog {{{ *
BW_MALLOC
, BW_REALLOC
, and BW_FREE
.BW_RESTRICT
.(u)int{8,16,32,64}_t
,
* `INT{8,16,32,64}_{MIN,MAX}`, and `UINT{8,16,32,64}_MAX` are not defined,
* then `stdint.h` is `#include`d (actually, only testing against
* `INT32_MAX` but expecting the others to be finally defined).
* >>> */
#ifndef INT32_MAX
# include