1a23fd11yl/*
2a23fd11yl * CDDL HEADER START
3a23fd11yl *
4a23fd11yl * The contents of this file are subject to the terms of the
5a23fd11yl * Common Development and Distribution License (the "License").
6a23fd11yl * You may not use this file except in compliance with the License.
7a23fd11yl *
8a23fd11yl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9a23fd11yl * or http://www.opensolaris.org/os/licensing.
10a23fd11yl * See the License for the specific language governing permissions
11a23fd11yl * and limitations under the License.
12a23fd11yl *
13a23fd11yl * When distributing Covered Code, include this CDDL HEADER in each
14a23fd11yl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a23fd11yl * If applicable, add the following below this CDDL HEADER, with the
16a23fd11yl * fields enclosed by brackets "[]" replaced with your own identifying
17a23fd11yl * information: Portions Copyright [yyyy] [name of copyright owner]
18a23fd11yl *
19a23fd11yl * CDDL HEADER END
20a23fd11yl *
218347601yl * Copyright (c) 2002-2006 Neterion, Inc.
22a23fd11yl */
23a23fd11yl
24a23fd11yl#ifndef XGE_DEBUG_H
25a23fd11yl#define XGE_DEBUG_H
26a23fd11yl
27a23fd11yl#include "xge-os-pal.h"
28a23fd11yl
298347601yl__EXTERN_BEGIN_DECLS
308347601yl
317eced41xw/*
327eced41xw * __FUNCTION__ is, together with __PRETTY_FUNCTION__ or something similar,
337eced41xw * a gcc extension. we'll have to #ifdef around that, and provide some
347eced41xw * meaningful replacement for those, so to make some gcc versions happier
357eced41xw */
36a23fd11yl#ifndef __func__
377eced41xw#ifdef __FUNCTION__
38a23fd11yl#define __func__ __FUNCTION__
39a23fd11yl#endif
407eced41xw#endif
417eced41xw
42a23fd11yl
43a23fd11yl#ifdef XGE_DEBUG_FP
44a23fd11yl#define XGE_DEBUG_FP_DEVICE	0x1
45a23fd11yl#define XGE_DEBUG_FP_CHANNEL	0x2
46a23fd11yl#define XGE_DEBUG_FP_FIFO	0x4
47a23fd11yl#define XGE_DEBUG_FP_RING	0x8
48a23fd11yl#endif
49a23fd11yl
50a23fd11yl/**
51a23fd11yl * enum xge_debug_level_e
52a23fd11yl * @XGE_NONE: debug disabled
53a23fd11yl * @XGE_ERR: all errors going to be logged out
54a23fd11yl * @XGE_TRACE: all errors plus all kind of verbose tracing print outs
55a23fd11yl *                 going to be logged out. Very noisy.
56a23fd11yl *
57a23fd11yl * This enumeration going to be used to switch between different
58a23fd11yl * debug levels during runtime if DEBUG macro defined during
59a23fd11yl * compilation. If DEBUG macro not defined than code will be
60a23fd11yl * compiled out.
61a23fd11yl */
62a23fd11yltypedef enum xge_debug_level_e {
63a23fd11yl	XGE_NONE   = 0,
64a23fd11yl	XGE_TRACE  = 1,
65a23fd11yl	XGE_ERR    = 2,
66a23fd11yl} xge_debug_level_e;
67a23fd11yl
687eced41xw#define XGE_DEBUG_MODULE_MASK_DEF	0x30000030
69a23fd11yl#define XGE_DEBUG_LEVEL_DEF		XGE_ERR
70a23fd11yl
71a23fd11yl#if defined(XGE_DEBUG_TRACE_MASK) || defined(XGE_DEBUG_ERR_MASK)
72a23fd11yl
737eced41xwextern unsigned long *g_module_mask;
74a23fd11ylextern int *g_level;
75a23fd11yl
76a23fd11yl#ifndef XGE_DEBUG_TRACE_MASK
77a23fd11yl#define XGE_DEBUG_TRACE_MASK 0
78a23fd11yl#endif
79a23fd11yl
80a23fd11yl#ifndef XGE_DEBUG_ERR_MASK
81a23fd11yl#define XGE_DEBUG_ERR_MASK 0
82a23fd11yl#endif
83a23fd11yl
84a23fd11yl/*
85a23fd11yl * @XGE_COMPONENT_HAL_CONFIG: do debug for xge core config module
86a23fd11yl * @XGE_COMPONENT_HAL_FIFO: do debug for xge core fifo module
87a23fd11yl * @XGE_COMPONENT_HAL_RING: do debug for xge core ring module
88a23fd11yl * @XGE_COMPONENT_HAL_CHANNEL: do debug for xge core channel module
89a23fd11yl * @XGE_COMPONENT_HAL_DEVICE: do debug for xge core device module
908347601yl * @XGE_COMPONENT_HAL_DMQ: do debug for xge core DMQ module
918347601yl * @XGE_COMPONENT_HAL_UMQ: do debug for xge core UMQ module
928347601yl * @XGE_COMPONENT_HAL_SQ: do debug for xge core SQ module
938347601yl * @XGE_COMPONENT_HAL_SRQ: do debug for xge core SRQ module
947eced41xw * @XGE_COMPONENT_HAL_CQRQ: do debug for xge core CRQ module
957eced41xw * @XGE_COMPONENT_HAL_POOL: do debug for xge core memory pool module
967eced41xw * @XGE_COMPONENT_HAL_BITMAP: do debug for xge core BITMAP module
97a23fd11yl * @XGE_COMPONENT_CORE: do debug for xge KMA core module
98a23fd11yl * @XGE_COMPONENT_OSDEP: do debug for xge KMA os dependent parts
99a23fd11yl * @XGE_COMPONENT_LL: do debug for xge link layer module
100a23fd11yl * @XGE_COMPONENT_ALL: activate debug for all modules with no exceptions
101a23fd11yl *
102a23fd11yl * This enumeration going to be used to distinguish modules
103a23fd11yl * or libraries during compilation and runtime.  Makefile must declare
104a23fd11yl * XGE_DEBUG_MODULE_MASK macro and set it to proper value.
105a23fd11yl */
1068347601yl#define XGE_COMPONENT_HAL_CONFIG		0x00000001
1078347601yl#define	XGE_COMPONENT_HAL_FIFO			0x00000002
1088347601yl#define	XGE_COMPONENT_HAL_RING			0x00000004
1098347601yl#define	XGE_COMPONENT_HAL_CHANNEL		0x00000008
1108347601yl#define	XGE_COMPONENT_HAL_DEVICE		0x00000010
1118347601yl#define	XGE_COMPONENT_HAL_MM			0x00000020
1127eced41xw#define	XGE_COMPONENT_HAL_QUEUE	        0x00000040
1137eced41xw#define	XGE_COMPONENT_HAL_INTERRUPT     0x00000080
1147eced41xw#define	XGE_COMPONENT_HAL_STATS	        0x00000100
1158347601yl
116a23fd11yl	/* space for CORE_XXX */
1178347601yl#define	XGE_COMPONENT_OSDEP			0x10000000
1188347601yl#define	XGE_COMPONENT_LL			0x20000000
119a23fd11yl#define	XGE_COMPONENT_ALL			0xffffffff
120a23fd11yl
121a23fd11yl#ifndef XGE_DEBUG_MODULE_MASK
122a23fd11yl#error "XGE_DEBUG_MODULE_MASK macro must be defined for DEBUG mode..."
123a23fd11yl#endif
124a23fd11yl
125a23fd11yl#ifndef __GNUC__
126a23fd11yl#ifdef XGE_TRACE_INTO_CIRCULAR_ARR
127a23fd11yl        #define xge_trace_aux(fmt) xge_os_vatrace(g_xge_os_tracebuf, fmt)
128a23fd11yl#else
129a23fd11yl        #define xge_trace_aux(fmt) xge_os_vaprintf(fmt)
130a23fd11yl#endif
131a23fd11yl
132a23fd11yl/**
133a23fd11yl * xge_debug
134a23fd11yl * @level: level of debug verbosity.
135a23fd11yl * @fmt: printf like format string
136a23fd11yl *
137a23fd11yl * Provides logging facilities. Can be customized on per-module
138a23fd11yl * basis or/and with debug levels. Input parameters, except
139a23fd11yl * module and level, are the same as posix printf. This function
140a23fd11yl * may be compiled out if DEBUG macro was never defined.
141a23fd11yl * See also: xge_debug_level_e{}.
142a23fd11yl */
143a23fd11yl#define xge_debug(module, level, fmt) { \
144a23fd11ylif (((level >= XGE_TRACE && ((module & XGE_DEBUG_TRACE_MASK) == module)) || \
145a23fd11yl    (level >= XGE_ERR && ((module & XGE_DEBUG_ERR_MASK) == module))) && \
1467eced41xw    level >= *g_level && module & *(unsigned int *)g_module_mask) { \
147a23fd11yl                xge_trace_aux(fmt); \
148a23fd11yl	} \
149a23fd11yl}
150a23fd11yl#else /* __GNUC__ */
151a23fd11yl
152a23fd11yl#ifdef XGE_TRACE_INTO_CIRCULAR_ARR
153a23fd11yl        #define xge_trace_aux(fmt...) xge_os_trace(g_xge_os_tracebuf, fmt)
154a23fd11yl#else
155a23fd11yl        #define xge_trace_aux(fmt...) xge_os_printf(fmt)
156a23fd11yl#endif
157a23fd11yl
158a23fd11yl#define xge_debug(module, level, fmt...) { \
159a23fd11ylif (((level >= XGE_TRACE && ((module & XGE_DEBUG_TRACE_MASK) == module)) || \
160a23fd11yl    (level >= XGE_ERR && ((module & XGE_DEBUG_ERR_MASK) == module))) && \
1617eced41xw    level >= *g_level && module & *(unsigned int *)g_module_mask) { \
162a23fd11yl                xge_trace_aux(fmt); \
163a23fd11yl	} \
164a23fd11yl}
165a23fd11yl#endif /* __GNUC__ */
166a23fd11yl
167a23fd11yl#if (XGE_COMPONENT_HAL_STATS & XGE_DEBUG_MODULE_MASK)
168a23fd11yl#ifndef __GNUC__
169a23fd11ylstatic inline void xge_debug_stats(xge_debug_level_e level, char *fmt, ...) {
170a23fd11yl	u32 module = XGE_COMPONENT_HAL_STATS;
171a23fd11yl	xge_debug(module, level, fmt);
172a23fd11yl}
173a23fd11yl#else /* __GNUC__ */
174a23fd11yl#define xge_debug_stats(level, fmt...) \
175a23fd11yl	xge_debug(XGE_COMPONENT_HAL_STATS, level, fmt)
176a23fd11yl#endif /* __GNUC__ */
177a23fd11yl#else
178a23fd11yl#ifndef __GNUC__
179a23fd11ylstatic inline void xge_debug_stats(xge_debug_level_e level, char *fmt, ...) {}
180a23fd11yl#else /* __GNUC__ */
181a23fd11yl#define xge_debug_stats(level, fmt...)
182a23fd11yl#endif /* __GNUC__ */
183a23fd11yl#endif
184a23fd11yl
1857eced41xw/* Interrupt Related */
1867eced41xw#if (XGE_COMPONENT_HAL_INTERRUPT & XGE_DEBUG_MODULE_MASK)
1877eced41xw#ifndef __GNUC__
1887eced41xwstatic inline void xge_debug_interrupt(xge_debug_level_e level, char *fmt, ...) {
1897eced41xw	u32 module = XGE_COMPONENT_HAL_INTERRUPT;
1907eced41xw	xge_debug(module, level, fmt);
1917eced41xw}
1927eced41xw#else /* __GNUC__ */
1937eced41xw#define xge_debug_interrupt(level, fmt...) \
1947eced41xw	xge_debug(XGE_COMPONENT_HAL_INTERRUPT, level, fmt)
1957eced41xw#endif /* __GNUC__ */
1967eced41xw#else
1977eced41xw#ifndef __GNUC__
1987eced41xwstatic inline void xge_debug_interrupt(xge_debug_level_e level, char *fmt, ...) {}
1997eced41xw#else /* __GNUC__ */
2007eced41xw#define xge_debug_interrupt(level, fmt...)
2017eced41xw#endif /* __GNUC__ */
2027eced41xw#endif
2037eced41xw
204a23fd11yl#if (XGE_COMPONENT_HAL_QUEUE & XGE_DEBUG_MODULE_MASK)
205a23fd11yl#ifndef __GNUC__
206a23fd11ylstatic inline void xge_debug_queue(xge_debug_level_e level, char *fmt, ...) {
207a23fd11yl	u32 module = XGE_COMPONENT_HAL_QUEUE;
208a23fd11yl	xge_debug(module, level, fmt);
209a23fd11yl}
210a23fd11yl#else /* __GNUC__ */
211a23fd11yl#define xge_debug_queue(level, fmt...) \
212a23fd11yl	xge_debug(XGE_COMPONENT_HAL_QUEUE, level, fmt)
213a23fd11yl#endif /* __GNUC__ */
214a23fd11yl#else
215a23fd11yl#ifndef __GNUC__
216a23fd11ylstatic inline void xge_debug_queue(xge_debug_level_e level, char *fmt,
217a23fd11yl...) {}
218a23fd11yl#else /* __GNUC__ */
219a23fd11yl#define xge_debug_queue(level, fmt...)
220a23fd11yl#endif /* __GNUC__ */
221a23fd11yl#endif
222a23fd11yl
223a23fd11yl#if (XGE_COMPONENT_HAL_MM & XGE_DEBUG_MODULE_MASK)
224a23fd11yl#ifndef __GNUC__
225a23fd11ylstatic inline void xge_debug_mm(xge_debug_level_e level, char *fmt, ...)
226a23fd11yl{
227a23fd11yl	u32 module = XGE_COMPONENT_HAL_MM;
228a23fd11yl	xge_debug(module, level, fmt);
229a23fd11yl}
230a23fd11yl#else /* __GNUC__ */
231a23fd11yl#define xge_debug_mm(level, fmt...) \
232a23fd11yl	xge_debug(XGE_COMPONENT_HAL_MM, level, fmt)
233a23fd11yl#endif /* __GNUC__ */
234a23fd11yl#else
235a23fd11yl#ifndef __GNUC__
236a23fd11ylstatic inline void xge_debug_mm(xge_debug_level_e level, char *fmt, ...)
237a23fd11yl{}
238a23fd11yl#else /* __GNUC__ */
239a23fd11yl#define xge_debug_mm(level, fmt...)
240a23fd11yl#endif /* __GNUC__ */
241a23fd11yl#endif
242a23fd11yl
243a23fd11yl#if (XGE_COMPONENT_HAL_CONFIG & XGE_DEBUG_MODULE_MASK)
244a23fd11yl#ifndef __GNUC__
245a23fd11ylstatic inline void xge_debug_config(xge_debug_level_e level, char *fmt, ...) {
246a23fd11yl	u32 module = XGE_COMPONENT_HAL_CONFIG;
247a23fd11yl	xge_debug(module, level, fmt);
248a23fd11yl}
249a23fd11yl#else /* __GNUC__ */
250a23fd11yl#define xge_debug_config(level, fmt...) \
251a23fd11yl	xge_debug(XGE_COMPONENT_HAL_CONFIG, level, fmt)
252a23fd11yl#endif /* __GNUC__ */
253a23fd11yl#else
254a23fd11yl#ifndef __GNUC__
255a23fd11ylstatic inline void xge_debug_config(xge_debug_level_e level, char *fmt,
256a23fd11yl...) {}
257a23fd11yl#else /* __GNUC__ */
258a23fd11yl#define xge_debug_config(level, fmt...)
259a23fd11yl#endif /* __GNUC__ */
260a23fd11yl#endif
261a23fd11yl
262a23fd11yl#if (XGE_COMPONENT_HAL_FIFO & XGE_DEBUG_MODULE_MASK)
263a23fd11yl#ifndef __GNUC__
264a23fd11ylstatic inline void xge_debug_fifo(xge_debug_level_e level, char *fmt, ...) {
265a23fd11yl	u32 module = XGE_COMPONENT_HAL_FIFO;
266a23fd11yl	xge_debug(module, level, fmt);
267a23fd11yl}
268a23fd11yl#else /* __GNUC__ */
269a23fd11yl#define xge_debug_fifo(level, fmt...) \
270a23fd11yl	xge_debug(XGE_COMPONENT_HAL_FIFO, level, fmt)
271a23fd11yl#endif /* __GNUC__ */
272a23fd11yl#else
273a23fd11yl#ifndef __GNUC__
274a23fd11ylstatic inline void xge_debug_fifo(xge_debug_level_e level, char *fmt, ...) {}
275a23fd11yl#else /* __GNUC__ */
276a23fd11yl#define xge_debug_fifo(level, fmt...)
277a23fd11yl#endif /* __GNUC__ */
278a23fd11yl#endif
279a23fd11yl
280a23fd11yl#if (XGE_COMPONENT_HAL_RING & XGE_DEBUG_MODULE_MASK)
281a23fd11yl#ifndef __GNUC__
282a23fd11ylstatic inline void xge_debug_ring(xge_debug_level_e level, char *fmt, ...) {
283a23fd11yl	u32 module = XGE_COMPONENT_HAL_RING;
284a23fd11yl	xge_debug(module, level, fmt);
285a23fd11yl}
286a23fd11yl#else /* __GNUC__ */
287a23fd11yl#define xge_debug_ring(level, fmt...) \
288a23fd11yl	xge_debug(XGE_COMPONENT_HAL_RING, level, fmt)
289a23fd11yl#endif /* __GNUC__ */
290a23fd11yl#else
291a23fd11yl#ifndef __GNUC__
292a23fd11ylstatic inline void xge_debug_ring(xge_debug_level_e level, char *fmt, ...) {}
293a23fd11yl#else /* __GNUC__ */
294a23fd11yl#define xge_debug_ring(level, fmt...)
295a23fd11yl#endif /* __GNUC__ */
296a23fd11yl#endif
297a23fd11yl
298a23fd11yl#if (XGE_COMPONENT_HAL_CHANNEL & XGE_DEBUG_MODULE_MASK)
299a23fd11yl#ifndef __GNUC__
300a23fd11ylstatic inline void xge_debug_channel(xge_debug_level_e level, char *fmt, ...) {
301a23fd11yl	u32 module = XGE_COMPONENT_HAL_CHANNEL;
302a23fd11yl	xge_debug(module, level, fmt);
303a23fd11yl}
304a23fd11yl#else /* __GNUC__ */
305a23fd11yl#define xge_debug_channel(level, fmt...) \
306a23fd11yl	xge_debug(XGE_COMPONENT_HAL_CHANNEL, level, fmt)
307a23fd11yl#endif /* __GNUC__ */
308a23fd11yl#else
309a23fd11yl#ifndef __GNUC__
310a23fd11ylstatic inline void xge_debug_channel(xge_debug_level_e level, char *fmt, ...) {}
311a23fd11yl#else /* __GNUC__ */
312a23fd11yl#define xge_debug_channel(level, fmt...)
313a23fd11yl#endif /* __GNUC__ */
314a23fd11yl#endif
315a23fd11yl
316a23fd11yl#if (XGE_COMPONENT_HAL_DEVICE & XGE_DEBUG_MODULE_MASK)
317a23fd11yl#ifndef __GNUC__
318a23fd11ylstatic inline void xge_debug_device(xge_debug_level_e level, char *fmt, ...) {
319a23fd11yl	u32 module = XGE_COMPONENT_HAL_DEVICE;
320a23fd11yl	xge_debug(module, level, fmt);
321a23fd11yl}
322a23fd11yl#else /* __GNUC__ */
323a23fd11yl#define xge_debug_device(level, fmt...) \
324a23fd11yl	xge_debug(XGE_COMPONENT_HAL_DEVICE, level, fmt)
325a23fd11yl#endif /* __GNUC__ */
326a23fd11yl#else
327a23fd11yl#ifndef __GNUC__
328a23fd11ylstatic inline void xge_debug_device(xge_debug_level_e level, char *fmt, ...) {}
329a23fd11yl#else /* __GNUC__ */
330a23fd11yl#define xge_debug_device(level, fmt...)
331a23fd11yl#endif /* __GNUC__ */
332a23fd11yl#endif
333a23fd11yl
334a23fd11yl#if (XGE_COMPONENT_OSDEP & XGE_DEBUG_MODULE_MASK)
335a23fd11yl#ifndef __GNUC__
336a23fd11ylstatic inline void xge_debug_osdep(xge_debug_level_e level, char *fmt, ...) {
337a23fd11yl	u32 module = XGE_COMPONENT_OSDEP;
338a23fd11yl	xge_debug(module, level, fmt);
339a23fd11yl}
340a23fd11yl#else /* __GNUC__ */
341a23fd11yl#define xge_debug_osdep(level, fmt...) \
342a23fd11yl	xge_debug(XGE_COMPONENT_OSDEP, level, fmt)
343a23fd11yl#endif /* __GNUC__ */
344a23fd11yl#else
345a23fd11yl#ifndef __GNUC__
346a23fd11ylstatic inline void xge_debug_osdep(xge_debug_level_e level, char *fmt, ...) {}
347a23fd11yl#else /* __GNUC__ */
348a23fd11yl#define xge_debug_osdep(level, fmt...)
349a23fd11yl#endif /* __GNUC__ */
350a23fd11yl#endif
351a23fd11yl
352a23fd11yl#if (XGE_COMPONENT_LL & XGE_DEBUG_MODULE_MASK)
353a23fd11yl#ifndef __GNUC__
354a23fd11ylstatic inline void xge_debug_ll(xge_debug_level_e level, char *fmt, ...)
355a23fd11yl{
356a23fd11yl	u32 module = XGE_COMPONENT_LL;
357a23fd11yl	xge_debug(module, level, fmt);
358a23fd11yl}
359a23fd11yl#else /* __GNUC__ */
360a23fd11yl#define xge_debug_ll(level, fmt...) \
361a23fd11yl	xge_debug(XGE_COMPONENT_LL, level, fmt)
362a23fd11yl#endif /* __GNUC__ */
363a23fd11yl#else
364a23fd11yl#ifndef __GNUC__
365a23fd11ylstatic inline void xge_debug_ll(xge_debug_level_e level, char *fmt, ...) {}
366a23fd11yl#else /* __GNUC__ */
367a23fd11yl#define xge_debug_ll(level, fmt...)
368a23fd11yl#endif /* __GNUC__ */
369a23fd11yl#endif
370a23fd11yl
371a23fd11yl#else
372a23fd11yl
3737eced41xwstatic inline void xge_debug_interrupt(xge_debug_level_e level, char *fmt, ...) {}
374a23fd11ylstatic inline void xge_debug_stats(xge_debug_level_e level, char *fmt, ...) {}
375a23fd11ylstatic inline void xge_debug_queue(xge_debug_level_e level, char *fmt, ...) {}
376a23fd11ylstatic inline void xge_debug_mm(xge_debug_level_e level, char *fmt, ...) {}
377a23fd11ylstatic inline void xge_debug_config(xge_debug_level_e level, char *fmt, ...) {}
378a23fd11ylstatic inline void xge_debug_fifo(xge_debug_level_e level, char *fmt, ...) {}
379a23fd11ylstatic inline void xge_debug_ring(xge_debug_level_e level, char *fmt, ...) {}
380a23fd11ylstatic inline void xge_debug_channel(xge_debug_level_e level, char *fmt, ...) {}
381a23fd11ylstatic inline void xge_debug_device(xge_debug_level_e level, char *fmt, ...) {}
382a23fd11ylstatic inline void xge_debug_hal(xge_debug_level_e level, char *fmt, ...) {}
383a23fd11ylstatic inline void xge_debug_osdep(xge_debug_level_e level, char *fmt, ...) {}
384a23fd11ylstatic inline void xge_debug_ll(xge_debug_level_e level, char *fmt, ...) {}
385a23fd11yl
386a23fd11yl#endif /* end of XGE_DEBUG_*_MASK */
387a23fd11yl
388a23fd11yl#ifdef XGE_DEBUG_ASSERT
389a23fd11yl
390a23fd11yl/**
391a23fd11yl * xge_assert
392a23fd11yl * @test: C-condition to check
393a23fd11yl * @fmt: printf like format string
394a23fd11yl *
395a23fd11yl * This function implements traditional assert. By default assertions
396a23fd11yl * are enabled. It can be disabled by defining XGE_DEBUG_ASSERT macro in
397a23fd11yl * compilation
398a23fd11yl * time.
399a23fd11yl */
400a23fd11yl#define xge_assert(test) { \
401a23fd11yl        if (!(test)) xge_os_bug("bad cond: "#test" at %s:%d\n", \
402a23fd11yl	__FILE__, __LINE__); }
403a23fd11yl#else
404a23fd11yl#define xge_assert(test)
405a23fd11yl#endif /* end of XGE_DEBUG_ASSERT */
406a23fd11yl
4078347601yl__EXTERN_END_DECLS
4088347601yl
409a23fd11yl#endif /* XGE_DEBUG_H */
410