Derive-C
Loading...
Searching...
No Matches
scope.h
Go to the documentation of this file.
1
#pragma once
2
#include <
derive-c/core/zerosized.h
>
3
5
#define DC_SCOPED(type) __attribute__((cleanup(type##_delete))) type
6
8
DC_ZERO_SIZED
(sentinel);
9
12
#define DC_DEFER(fcn) __attribute__((cleanup(fcn))) sentinel PRIV(NS(sentinel, __COUNTER__)) = {}
zerosized.h
DC_ZERO_SIZED
#define DC_ZERO_SIZED(TYPE)
Zero sized types are useful as markers (e.g. for gdb printing, or to replace debug info structs.
Definition
zerosized.h:15
src
derive-c
core
scope.h
Generated by
1.15.0