Commit 811860c3 authored by Max Kellermann's avatar Max Kellermann

android/Context: use [[gnu::pure]]

parent 8439119e
......@@ -30,10 +30,10 @@ public:
Context(JNIEnv *env, jobject obj) noexcept
:Java::GlobalObject(env, obj) {}
gcc_pure
[[gnu::pure]]
AllocatedPath GetCacheDir(JNIEnv *env) const noexcept;
gcc_pure
[[gnu::pure]]
AudioManager *GetAudioManager(JNIEnv *env) noexcept;
};
......
......@@ -33,10 +33,10 @@ namespace Environment {
/**
* Determine the mount point of the external SD card.
*/
gcc_pure
[[gnu::pure]]
AllocatedPath getExternalStorageDirectory() noexcept;
gcc_pure
[[gnu::pure]]
AllocatedPath getExternalStoragePublicDirectory(const char *type) noexcept;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment