diff options
author | Stefan Eßer <se@FreeBSD.org> | 2025-09-11 14:07:46 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2025-09-11 14:07:46 +0000 |
commit | 682da5a0fdb2c38ecc3951047a882471d62aa1d1 (patch) | |
tree | 9315c84201e10a5b4cec2eda91146cac4e1c904d /include/lang.h | |
parent | 5a7f1dde93a4c681a5a4246ddabc562a7f7ce14d (diff) |
Diffstat (limited to 'include/lang.h')
-rw-r--r-- | include/lang.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/lang.h b/include/lang.h index 6c8245139719..d0582a7d2199 100644 --- a/include/lang.h +++ b/include/lang.h @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: BSD-2-Clause * - * Copyright (c) 2018-2024 Gavin D. Howard and contributors. + * Copyright (c) 2018-2025 Gavin D. Howard and contributors. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -533,6 +533,10 @@ typedef enum BcType } BcType; #if BC_ENABLED + +/// Check if type array or array reference +#define BC_IS_ARRAY(e) (e == BC_TYPE_ARRAY || e == BC_TYPE_REF) + /// An auto variable in bc. typedef struct BcAuto { |