aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/dyn/dyn_base.cpp
blob: 72ee90f0c1ae09b7f090a705c8f28f3c54a72cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 
dyn - dynamical object management

Copyright (c)2003-2004 Thomas Grill (gr@grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.  
*/

#include "dyn_proto.h"

dyn_base::dyn_base(dyn_id id)
    : ident(id) 
{
    ident->Callback(DYN_SIGNAL_NEW);
}

dyn_base::~dyn_base() 
{
    // ident should already have been anonymized...
    ASSERT(!ident->data);

    ident->Callback(DYN_SIGNAL_FREE);
}