mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
Kernel: Module symbol declarations for type-checking
With this, if a future module misses the 'extern "C"' or uses a wrong type, they get a nice compiler error instead of runtime errors or weird behavior. Also, this works towards getting the Kernel ready for -Wmissing-declarations.
This commit is contained in:
committed by
Andreas Kling
parent
7abd9c81c6
commit
ff16da8c77
@@ -24,7 +24,8 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <Kernel/Process.h>
|
||||
#include <AK/LogStream.h>
|
||||
#include <Kernel/Modules/module_syms.h>
|
||||
|
||||
extern "C" const char module_name[] = "TestModule";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user