1 #ifndef _melder_casual_h_
2 #define _melder_casual_h_
3 /* melder_casual.h
4 *
5 * Copyright (C) 1992-2018,2020 Paul Boersma
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 /*
22 Function:
23 Sends a message without user interference.
24 Behaviour:
25 Writes to stderr on Unix, otherwise to a special window.
26 */
27
_recursiveTemplate_Melder_casual(const MelderArg & arg)28 inline void _recursiveTemplate_Melder_casual (const MelderArg& arg) {
29 MelderConsole::write (arg._arg, true);
30 }
31 template <typename... Args>
_recursiveTemplate_Melder_casual(const MelderArg & first,Args...rest)32 void _recursiveTemplate_Melder_casual (const MelderArg& first, Args... rest) {
33 _recursiveTemplate_Melder_casual (first);
34 _recursiveTemplate_Melder_casual (rest...);
35 }
36
37 template <typename... Args>
Melder_casual(const MelderArg & first,Args...rest)38 void Melder_casual (const MelderArg& first, Args... rest) {
39 _recursiveTemplate_Melder_casual (first, rest...);
40 MelderConsole::write (U"\n", true);
41 }
42
43 void MelderCasual_memoryUse (integer message = 0);
44
45 /* End of file melder_casual.h */
46 #endif
47