Debian Codegraph @

melder/melder_warning.cpp

raw symbols SCIP
1 /* melder_warning.cpp
2 *
3 * Copyright (C) 1992-2012,2014-2016,2018,2020 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "melder.h"cxx . . $ `<file>/melder/melder.h`/
20
21 int MelderWarningcxx . . $ MelderWarning/::_depthcxx . . $ MelderWarning/_depth. = 0;
22
23 void MelderWarningcxx . . $ MelderWarning/::_defaultProccxx . . $ MelderWarning/_defaultProc(ff00d524ab0355ec). (conststring32cxx . . $ conststring32# message) {
24 MelderConsolecxx . . $ MelderConsole/::writecxx . . $ MelderConsole/write(7004b68cc6c23ea2). (U"Warning: ", true);
25 MelderConsolecxx . . $ MelderConsole/::writecxx . . $ MelderConsole/write(7004b68cc6c23ea2). (message, true);
26 MelderConsolecxx . . $ MelderConsole/::writecxx . . $ MelderConsole/write(7004b68cc6c23ea2). (U"\n", true);
27 }
28
29 MelderWarningcxx . . $ MelderWarning/::Proccxx . . $ MelderWarning/Proc# MelderWarningcxx . . $ MelderWarning/::_p_currentProccxx . . $ MelderWarning/_p_currentProc. = & MelderWarningcxx . . $ MelderWarning/::_defaultProccxx . . $ MelderWarning/_defaultProc(ff00d524ab0355ec).;
30
31 MelderStringcxx . . $ MelderString# MelderWarningcxx . . $ MelderWarning/::_buffercxx . . $ MelderWarning/_buffer.;
32
33 void Melder_warningOffcxx . . $ Melder_warningOff(49f6e7a06ebc5aa8). () { MelderWarningcxx . . $ MelderWarning/::_depthcxx . . $ MelderWarning/_depth. --; }
34 void Melder_warningOncxx . . $ Melder_warningOn(49f6e7a06ebc5aa8). () { MelderWarningcxx . . $ MelderWarning/::_depthcxx . . $ MelderWarning/_depth. ++; }
35
36 void Melder_setWarningProccxx . . $ Melder_setWarningProc(f441b548652834d9). (MelderWarningcxx . . $ MelderWarning/::Proccxx . . $ MelderWarning/Proc# p_proc) {
37 MelderWarningcxx . . $ MelderWarning/::_p_currentProccxx . . $ MelderWarning/_p_currentProc. = ( p_proc ? p_proc : & MelderWarningcxx . . $ MelderWarning/::_defaultProccxx . . $ MelderWarning/_defaultProc(ff00d524ab0355ec). );
38 }
39
40 /* End of file melder_warning.cpp */