mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +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:
parent
7abd9c81c6
commit
ff16da8c77
Notes:
sideshowbarker
2024-07-19 03:42:00 +09:00
Author: https://github.com/BenWiederhake
Commit: ff16da8c77
Pull-request: https://github.com/SerenityOS/serenity/pull/3096
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/stelar7
2 changed files with 33 additions and 1 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue