LMMS
Loading...
Searching...
No Matches
plugins
CarlaBase
carla
source
backend
utils
System.cpp
Go to the documentation of this file.
1
/*
2
* Carla Plugin Host
3
* Copyright (C) 2011-2023 Filipe Coelho <falktx@falktx.com>
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of
8
* the License, or any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
16
*/
17
18
#include "
CarlaUtils.h
"
19
20
#ifndef CARLA_OS_WASM
21
# include "CarlaThread.hpp"
22
#else
23
# include "CarlaUtils.hpp"
24
#endif
25
26
// -------------------------------------------------------------------------------------------------------------------
27
28
void
carla_fflush
(
const
bool
err)
29
{
30
std::fflush(err ? stderr : stdout);
31
}
32
33
void
carla_fputs
(
const
bool
err,
const
char
*
const
string
)
34
{
35
std::fputs(
string
, err ? stderr : stdout);
36
}
37
38
void
carla_set_process_name
(
const
char
*
const
name
)
39
{
40
carla_debug(
"carla_set_process_name(\"%s\")"
,
name
);
41
42
#ifndef CARLA_OS_WASM
43
CarlaThread::setCurrentThreadName(
name
);
44
#else
45
// unused
46
(
void
)
name
;
47
#endif
48
}
49
50
// -------------------------------------------------------------------------------------------------------------------
CarlaUtils.h
carla_fflush
void carla_fflush(const bool err)
Definition
System.cpp:28
carla_set_process_name
void carla_set_process_name(const char *const name)
Definition
System.cpp:38
carla_fputs
void carla_fputs(const bool err, const char *const string)
Definition
System.cpp:33
name
static const char * name
Definition
pugl.h:1582
void
#define void
Definition
unzip.h:396
Generated on
for LMMS by
1.16.1