File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
namespace Fortran ::runtime {
20
20
// Storage for the Stack elements of type T.
21
21
template <typename T, unsigned N> struct StackStorage {
22
- void *getElement (unsigned i) {
22
+ RT_API_ATTRS void *getElement (unsigned i) {
23
23
if (i < N) {
24
24
return storage[i];
25
25
} else {
26
26
return nullptr ;
27
27
}
28
28
}
29
- const void *getElement (unsigned i) const {
29
+ RT_API_ATTRS const void *getElement (unsigned i) const {
30
30
if (i < N) {
31
31
return storage[i];
32
32
} else {
@@ -43,8 +43,8 @@ template <typename T, unsigned N> struct StackStorage {
43
43
44
44
// 0-size specialization that provides no storage.
45
45
template <typename T> struct alignas (T) StackStorage<T, 0 > {
46
- void *getElement (unsigned ) { return nullptr ; }
47
- const void *getElement (unsigned ) const { return nullptr ; }
46
+ RT_API_ATTRS void *getElement (unsigned ) { return nullptr ; }
47
+ RT_API_ATTRS const void *getElement (unsigned ) const { return nullptr ; }
48
48
};
49
49
50
50
template <typename T, unsigned N = 0 > class Stack : public StackStorage <T, N> {
You can’t perform that action at this time.
0 commit comments