Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

266 B
Raw Blame
#include <filesystem>

std::filesystem::path getPluginPath() {
	Dl_info dl_info;
	if (dladdr((void*)&getPluginPath, &dl_info) == 0) {
		throw std::runtime_error("Unable to determine plugin path using dladdr.");
	}
	return std::filesystem::path(dl_info.dli_fname);
}