Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Conditional code inclusion at build time

Featured Replies

I'm new to Java programming, although luckily it's similar enough to C/C++ that I am so far having no difficulties.

However, one thing I used a lot in C is the preprocessor, which allows you to specify build options in a way that makes it easy to switch on or off different builds. The preprocessor runs at build time before the compiler and you can pass it options to do certain things, most commonly define substitution macros.

As an example, you have something like

#define __DEBUG_BUILD__
//#undef __DEBUG_BUILD__ /* Switch debugging on or off at build time */
#ifdef __DEBUG_BUILD__
#define log_info( /*  Whatever variables you want */ ) /* Some code to substitute for log_info */
#else
#define log_info /* log_info is now a blank expression - no debug info will be logged */
#endif

Does Java have something similar to the C preprocessor?

Java does not have such a thing as It's a higher level language.  Just declare it as a (public)static final and boom, there  you go
Reason: Java doesn't have a precompiler. I know it will be annoying to wrap your head around but eventually, you'll get used to it. You could make your own version of it using classes and all, but it won't make any difference since the won't preprocess it anyway... 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.