Comments (3)
Printing the format string will very likely only help in cases where the format string is long and complicated, e. g. distinguishable/unique. Most sscanf calls are likely to have only a few format specifiers.
I'll use my log-core library for that when it's ready, as it reports at which line exactly a faulty sscanf call is.
from sscanf.
I'll use my log-core library for that when it's ready, as it reports at which line exactly a faulty sscanf call is.
That exactly what is needed to do now when log-core is done. Do you still maintain this and have an opportunity to finally add this functionality of logging a specific line from pawn script on which sscanf is faced with a problem? This is still very relevant and several people asked me to create a similar issue here, but it seems you did it much earlier 😄
from sscanf.
OnError
(or OnSSCANFError
is an option. The other option is the true (secret hidden) meaning of the sscanf
return values. 0
has always meant "no error", but in the first pawn version of sscanf
any other value returned was actually the index (+ 1
) of the specifier that caused the error. I should re-introduce that feature.
I also have file and line information on errors now, so when you do get an error you can at least read more detailed information in the console on where it came from.
from sscanf.
Related Issues (20)
- Version mess HOT 3
- Unicode symbols? HOT 2
- Small typo
- Problems with "_ALS" error using 2.11.4 HOT 2
- Add open.mp support for sscanf HOT 2
- Using Latest version of sscanf2 HOT 2
- More warnings HOT 1
- Run time error 19: "File or function is not found" HOT 2
- Run time error 19: "File or function is not found" HOT 1
- Error 017: undefined symbol sscanf HOT 1
- fatal error 111 HOT 1
- New, more optimized, bug-free version of sscanf HOT 1
- new version - shit HOT 4
- OMP B11| Version: 2.13.4.0 | It crashes my server while having crashdetect plugin
- String buffer overflow HOT 1
- Is ARM supported?
- Y_Less sscanf problem on ARM processor
- Does not detect sscanf HOT 1
- SetPlayerName problems with sscanf 2.13.8 HOT 4
- Variants problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sscanf.