FastLED
3.9.15
Loading...
Searching...
No Matches
dll.h
Go to the documentation of this file.
1
#pragma once
2
5
6
#ifndef FASTLED_BUILD_EXPORTS
7
#define FASTLED_BUILD_EXPORTS 0
8
#endif
9
10
#if FASTLED_BUILD_EXPORTS
11
12
#include "
fl/system/export.h
"
13
14
FL_EXTERN_C_BEGIN
15
18
FASTLED_EXPORT
void
sketch_setup(
void
);
19
22
FASTLED_EXPORT
void
sketch_loop(
void
);
23
24
FL_EXTERN_C_END
25
26
// ================================================================================================
27
// IMPLEMENTATIONS (when building FastLED as shared library)
28
// ================================================================================================
29
30
#ifdef FASTLED_LIBRARY_SHARED
31
32
#ifdef __cplusplus
33
// Forward declarations - provided by sketch
34
extern
void
setup
();
35
extern
void
loop
();
36
37
// Provide implementations for the exported functions
38
FASTLED_EXPORT
void
sketch_setup() {
39
setup
();
40
}
41
42
FASTLED_EXPORT
void
sketch_loop() {
43
loop
();
44
}
45
#endif
// __cplusplus
46
47
#endif
// FASTLED_LIBRARY_SHARED
48
49
#endif
// FASTLED_BUILD_EXPORTS
setup
void setup()
Definition
AnalogOutput.ino:65
loop
void loop()
Definition
AnalogOutput.ino:54
FASTLED_EXPORT
#define FASTLED_EXPORT
Definition
export.h:27
export.h
Cross-platform export macros for FastLED dynamic library support.
FL_EXTERN_C_BEGIN
#define FL_EXTERN_C_BEGIN
FL_EXTERN_C_END
#define FL_EXTERN_C_END
fl
system
dll.h
Generated on Tue Jun 16 2026 00:07:00 for FastLED by
1.13.2