OpenCPN Partial API docs
Loading...
Searching...
No Matches
cutil.h
1/******************************************************************************
2 *
3 * Project: OpenCPN
4 * Purpose: Extern C Linked Utilities
5 * Author: David Register
6 *
7 ***************************************************************************
8 * Copyright (C) 2010 by David S. Register *
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 * This program is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program; if not, write to the *
22 * Free Software Foundation, Inc., *
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
24 ***************************************************************************
25 *
26 *
27 */
28
29#ifndef _CUTIL_H__
30#define _CUTIL_H__
31
32#include <vector>
33
34#ifdef __MSVC__
35#include <windows.h>
36#endif
37
38#include <wx/dynarray.h>
39
40
41#ifdef __cplusplus
42
43extern "C" int mysnprintf(char *buffer, int count, const char *format, ...);
44extern "C" int NextPow2(int size);
45
46#else /* __cplusplus */
47extern int mysnprintf(char *buffer, int count, const char *format, ...);
48#endif
49
50#ifdef __MSVC__
51#ifdef __cplusplus
52extern "C" long __stdcall MyUnhandledExceptionFilter(
53 struct _EXCEPTION_POINTERS *ExceptionInfo);
54#else
55extern long __stdcall MyUnhandledExceptionFilter(
56 struct _EXCEPTION_POINTERS *ExceptionInfo);
57#endif
58#endif
59
60
61
62
63#endif