/usr/include/falcon/vmevent.h is in falconpl-dev 0.9.6.9-git20120606-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | /*
FALCON - Falcon advanced simple text evaluator.
FILE: VMEvent.h
Special exception to communicate relevant events.
-------------------------------------------------------------------
Author: Giancarlo Niccolai
Begin: Wed, 08 Jul 2009 14:18:55 +0200
-------------------------------------------------------------------
(C) Copyright 2004: the FALCON developers (see list in AUTHORS file)
See LICENSE file for licensing details.
*/
#ifndef FALCON_VMEVENT_H
#define FALCON_VMEVENT_H
#include <falcon/setup.h>
#include <falcon/basealloc.h>
namespace Falcon
{
/** Virtual machine events
This class is thrown inside the VM to communicate special
requests to the listening application.
Type of requests are:
- evQuit: Clean exit. The VM terminated.
- evReturn: Some inner function asked immediate suspension of the VM;
the VM is in a coherent state and can be reentered in any moment.
- evOpLimit: The virtual machine exited due to excessive iterations.
- evMemLimit: The virtual machine exited due to excessive memory consumption.
- evDepthLimit: The virtual machine exited due to excessive depth of the stack calls.
*/
class VMEvent: public BaseAlloc
{
public:
typedef enum {
evQuit,
evOpLimit,
evMemLimit,
evDepthLimit
} tEvent;
VMEvent( tEvent t ):
m_type( t )
{}
VMEvent( const VMEvent& other ):
m_type( other.m_type )
{}
~VMEvent() {}
tEvent type() const { return m_type; }
private:
tEvent m_type;
};
class VMEventQuit: public VMEvent
{
public:
VMEventQuit(): VMEvent( evQuit )
{}
};
}
#endif
/* end of vmevent.h */
|