WvStreams
wvxplc.h
1 /* -*- Mode: C++ -*-
2  * Worldvisions Weaver Software:
3  * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4  *
5  * XPLC setup bits.
6  */
7 #ifndef __WVXPLC_H
8 #define __WVXPLC_H
9 
10 #ifndef UNSTABLE
11 #define UNSTABLE
12 #endif
13 
14 #ifdef _WIN32
15 #include <time.h>
16 #include <winsock2.h>
17 #include <ws2tcpip.h>
18 #include "wvwin32-sanitize.h"
19 #else
20 #include <unistd.h> // not strictly necessary, but EVERYBODY uses this...
21 #include <sys/time.h>
22 #include "wvautoconf.h"
23 #endif
24 
25 #ifndef ENABLE_DELETE_DETECTOR
26 #include <xplc/IObject.h>
27 #define deletev delete[]
28 #else
29 #include <string>
30 #include <xplc/delete.h>
31 #endif
32 
33 #include <xplc/xplc.h>
34 #include <xplc/ptr.h>
35 #include <xplc/uuidops.h>
36 
37 #define WVRELEASE(ptr) do { if (ptr) ptr->release(); ptr = 0; } while (0)
38 #define WVDELETE(ptr) do { delete ptr; ptr = 0; } while (0)
39 
40 #endif // __WVXPLC_H
This file contains the XPLC foundation interface.
Include this file right after IObject.h (or instead of) to detect accidental uses of "delete" on an X...
Smart pointer for XPLC interfaces.
The XPLC helper class for the C++ binding.