File: PQCompat.h

package info (click to toggle)
fontmanager.app 0.1-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 568 kB
  • ctags: 13
  • sloc: objc: 1,618; makefile: 19
file content (29 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * PQCompat.h - Font Manager
 *
 * Mac OS X compatibility.
 *
 * Copyright 2007 Isaiah Beerbower.
 *
 * Author: Isaiah Beerbower
 * Created: 05/24/07
 * License: Modified BSD license (see file COPYING)
 */

#ifndef GNUSTEP

#define AUTORELEASE(object) [object autorelease]
#define RELEASE(object) [object release]
#define RETAIN(object) [object retain]
#define ASSIGN(object, value)	({\
id __value = (id)(value); \
id __object = (id)(object); \
if (__value != __object) { \
   if (__value != nil) \
      [__value retain]; \
   object = __value; \
   if (__object != nil) \
      [__object release]; \
}})

#endif