Skip to content

Commit 9c652d0

Browse files
move stack_pointer.h to thread/
- as an internal dependency of linux clone3 thread
1 parent 38103e7 commit 9c652d0

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

include/fast_io_hosted/stack_pointer.h renamed to include/fast_io_hosted/threads/thread/stack_pointer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#error "fast_io: get_stack_pointer is not supported on MSVC"
55
#endif
66

7-
namespace fast_io
7+
namespace fast_io::details
88
{
99

1010
/**
@@ -47,7 +47,7 @@ inline void *get_stack_pointer() noexcept
4747
#elif defined(__powerpc__)
4848
__asm__ volatile("mr %0, 1" : "=r"(result));
4949
#else
50-
#error "Unknown arch to get stack pointer"
50+
static_assert(false, "Unknown arch to get stack pointer");
5151
#endif
5252
return result;
5353
}

tests/0038.stack_pointer/get_stack_pointer.cc

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)