diff options
Diffstat (limited to 'src/.unitize/_CoreInternals.vala')
-rw-r--r-- | src/.unitize/_CoreInternals.vala | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/.unitize/_CoreInternals.vala b/src/.unitize/_CoreInternals.vala new file mode 100644 index 0000000..b581845 --- /dev/null +++ b/src/.unitize/_CoreInternals.vala @@ -0,0 +1,31 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + * + * Auto-generated file. Do not modify! + */ + +namespace Core { + +private int _unit_init_count = 0; + +public void init_entry() throws Error { + if (_unit_init_count++ != 0) + return; + + Unit.init_entry(); + + Core.init(); +} + +public void terminate_entry() { + if (_unit_init_count == 0 || --_unit_init_count != 0) + return; + + Core.terminate(); + + Unit.terminate_entry(); +} + +} |