/**************************************************************************** ** ** This file is part of GAP, a system for computational discrete algebra. ** ** Copyright of GAP belongs to its developers, whose names are too numerous ** to list here. Please refer to the COPYRIGHT file for details. ** ** SPDX-License-Identifier: GPL-2.0-or-later ** ** This package defines macros and functions that are used by compiled code. ** Those macros and functions should go into the appropriate packages.
*/
#ifndef GAP_COMPILED_H #define GAP_COMPILED_H
// HACK: most (all?) GAP packages with a kernel extension include compiled.h // to get all GAP headers. They should ultimately all switch to including // gap_all.h; however that header has only been available since GAP 4.11.0, so // it will take some time for packages to make the switch. #include"gap_all.h"
#ifdef __cplusplus extern"C" { #endif
extern Obj InfoDecision;
// types, should go into 'gvars.c' and 'records.c'
typedef UInt GVar;
typedef UInt RNam;
// checks, should go into 'gap.c'
#define CHECK_BOUND(obj, name) \ if (obj == 0) \
ErrorQuit("variable '%s' must have an assigned value", (Int)name, 0);
#define CHECK_FUNC_RESULT(obj) \ if (obj == 0) \
ErrorQuit("function must return a value", 0, 0);
// More or less all of this will get inlined away void C_SET_LIMB4(Obj bag, UInt limbnumber, UInt4 value); void C_SET_LIMB8(Obj bag, UInt limbnumber, UInt8 value);
#ifdef __cplusplus
} // extern "C" #endif
#endif// GAP_COMPILED_H
¤ Dauer der Verarbeitung: 0.5 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.