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 1919namespace Fortran ::runtime {
2020// Storage for the Stack elements of type T.
2121template <typename T, unsigned N> struct StackStorage {
22- void *getElement (unsigned i) {
22+ RT_API_ATTRS void *getElement (unsigned i) {
2323 if (i < N) {
2424 return storage[i];
2525 } else {
2626 return nullptr ;
2727 }
2828 }
29- const void *getElement (unsigned i) const {
29+ RT_API_ATTRS const void *getElement (unsigned i) const {
3030 if (i < N) {
3131 return storage[i];
3232 } else {
@@ -43,8 +43,8 @@ template <typename T, unsigned N> struct StackStorage {
4343
4444// 0-size specialization that provides no storage.
4545template <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 ; }
4848};
4949
5050template <typename T, unsigned N = 0 > class Stack : public StackStorage <T, N> {
You can’t perform that action at this time.
0 commit comments