Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Maintenance & Feedback » JJ2+ Issue Tracker

Public test: warn about incorrect function signatures

Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,042

Violet CLM has disabled reputation

Sep 30, 2024, 10:21 AM
Violet CLM is offline
Reply With Quote
Public test: warn about incorrect function signatures

Download

This build shows warnings in the chatlog (if AngelscriptDebug is true in plus.ini) when you try to write a hook function in a script file but you get the function signature wrong. For example, void onMain() is great, but void onMain(jjPLAYER@) will show a warning.

Nonstandard function names will not show any warnings. For example, if you write void onLevelMain(), JJ2+ has no way to guess what you really meant to do.

This does modify (standardize) the code used for registering and calling almost every hook function, so it's possible that some of them broke in the process. When testing this build, please make sure that all hooks work when written correctly, not just that they show warnings when written incorrectly.
__________________
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 02:20 PM.