mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-26 23:04:15 +00:00
Estimated hours taken: 1 runtime/*.h: runtime/*.c: runtime/mercury_conf.h.in: Remove old .h files. Update #includes to refer to mercury_*.h Update #ifdef MODULE_H to be #ifdef MERCURY_MODULE_H
23 lines
809 B
C
23 lines
809 B
C
/*
|
|
** Copyright (C) 1997 The University of Melbourne.
|
|
** This file may only be copied under the terms of the GNU Library General
|
|
** Public License - see the file COPYING.LIB in the Mercury distribution.
|
|
*/
|
|
#include "mercury_imp.h"
|
|
#include "mercury_grade.h"
|
|
|
|
/*
|
|
** Define MR_grade_<gr>, where <gr> is the grade that this file is compiled in.
|
|
** Every generated .c file includes a reference to this constant;
|
|
** if any such file was compiled with a different grade than this file,
|
|
** then it will have an unresolved reference which will cause a link error.
|
|
*/
|
|
const char MR_GRADE_VAR = 0;
|
|
|
|
/*
|
|
** To ensure that the final executable file doesn't have multiple
|
|
** copies of this object file linked into it, we export a dummy symbol
|
|
** whose name does not depend on the grade.
|
|
*/
|
|
const char MR_runtime_grade = 0;
|