Skip to content

The ali namespace, useful tools everybody wants!

Notifications You must be signed in to change notification settings

Alistair007/ali

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ali namespace

Done by me, it has some cool features. Here are my faves:

console.h It has the class console, that supports basically every standard type, and more! There are also pretty ways of printing arrays/vectors, defined with _JAVASCRIPT_STYLE_LOGGING.

Some examples:

Example 1:

console.log(123);

Output: 123

Example 2:

console.log(L"Hello world!");

Output: Hello world!

As you can see, there are no problems with wide characters.

Example 3:

console.logp(213, ' ', 9.4f);

Output: 213 9.4

This one's like printf(), but doesn't require the beginning const char* parameter.

Example 4:

std::vector<int> x = {1,2,3,4,5};
console.log(x);

Output:

(5) [1, 2, 3, 4, 5]

Works with arrays and vectors, and does a pretty job!

About

The ali namespace, useful tools everybody wants!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published