sc_fxdefs.hh (13197:aeba6988033f) sc_fxdefs.hh (13322:7391057615bd)
1/*****************************************************************************
2
3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4 more contributor license agreements. See the NOTICE file distributed
5 with this work for additional information regarding copyright ownership.
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
8 License. You may obtain a copy of the License at

--- 33 unchanged lines hidden (view full) ---

42// Revision 1.3 2006/01/13 18:53:57 acg
43// Andy Goodrich: added $Log command so that CVS comments are reproduced in
44// the source.
45//
46
47#ifndef __SYSTEMC_EXT_DT_FX_SC_FXDEFS_HH__
48#define __SYSTEMC_EXT_DT_FX_SC_FXDEFS_HH__
49
1/*****************************************************************************
2
3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4 more contributor license agreements. See the NOTICE file distributed
5 with this work for additional information regarding copyright ownership.
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
8 License. You may obtain a copy of the License at

--- 33 unchanged lines hidden (view full) ---

42// Revision 1.3 2006/01/13 18:53:57 acg
43// Andy Goodrich: added $Log command so that CVS comments are reproduced in
44// the source.
45//
46
47#ifndef __SYSTEMC_EXT_DT_FX_SC_FXDEFS_HH__
48#define __SYSTEMC_EXT_DT_FX_SC_FXDEFS_HH__
49
50#include "../../utils/messages.hh"
50#include "../../utils/sc_report_handler.hh"
51#include "../int/sc_nbutils.hh"
52
53#if ULONG_MAX > 0xffffffffUL
54# define SC_LONG_64 1
55#else
56# define SC_LONG_64 0
57#endif

--- 178 unchanged lines hidden (view full) ---

236 if (cnd) { \
237 SC_REPORT_ERROR(id, msg); \
238 sc_core::sc_abort(); /* can't recover from here */ \
239 } \
240 } while ( false )
241
242#ifdef DEBUG_SYSTEMC
243# define SC_ASSERT_(cnd, msg) \
51#include "../../utils/sc_report_handler.hh"
52#include "../int/sc_nbutils.hh"
53
54#if ULONG_MAX > 0xffffffffUL
55# define SC_LONG_64 1
56#else
57# define SC_LONG_64 0
58#endif

--- 178 unchanged lines hidden (view full) ---

237 if (cnd) { \
238 SC_REPORT_ERROR(id, msg); \
239 sc_core::sc_abort(); /* can't recover from here */ \
240 } \
241 } while ( false )
242
243#ifdef DEBUG_SYSTEMC
244# define SC_ASSERT_(cnd, msg) \
244 SC_ERROR_IF_IMPL_(!(cnd), "internal error", msg)
245 SC_ERROR_IF_IMPL_(!(cnd), sc_core::SC_ID_INTERNAL_ERROR_, msg)
245#else
246# define SC_ASSERT_(cnd, msg) (void(0))
247#endif
248
249#define SC_ERROR_IF_(cnd,id) SC_ERROR_IF_IMPL_(cnd, id, 0)
250
251#define SC_CHECK_WL_(wl) SC_ERROR_IF_((wl) <= 0, \
252 "(E300) total wordlength <= 0 is not valid")

--- 37 unchanged lines hidden ---
246#else
247# define SC_ASSERT_(cnd, msg) (void(0))
248#endif
249
250#define SC_ERROR_IF_(cnd,id) SC_ERROR_IF_IMPL_(cnd, id, 0)
251
252#define SC_CHECK_WL_(wl) SC_ERROR_IF_((wl) <= 0, \
253 "(E300) total wordlength <= 0 is not valid")

--- 37 unchanged lines hidden ---