Steps to get Capacitor working with SvelteKit
- Set up a SvelteKit project as usual.
npm create svelte@latest my-app
cd my-app
npm install
npm run dev -- --open
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #ifdef __APPLE__ | |
| #include <OpenCL/opencl.h> | |
| #else | |
| #include <CL/cl.h> | |
| #endif | |
| int main() { |
| // compile with | |
| // g++ -std=c++11 test_log_default.cpp -DBOOST_LOG_DYN_LINK -lboost_log -lboost_thread -lpthread -lboost_system | |
| #include <iostream> | |
| #include <boost/log/expressions.hpp> | |
| #include <boost/log/sources/severity_channel_logger.hpp> | |
| #include <boost/log/sources/record_ostream.hpp> | |
| #include <boost/log/utility/setup/console.hpp> | |
| #include <boost/log/utility/setup/common_attributes.hpp> | |
| #include <boost/log/utility/setup/file.hpp> | |
| #include <boost/log/sinks.hpp> |
| // Example of how to use boost::asio::async_result | |
| #include <iostream> | |
| #include <boost/asio.hpp> | |
| #if BOOST_VERSION >= 106600 | |
| template<typename CompletionToken> | |
| typename boost::asio::async_result | |
| <CompletionToken, void(boost::system::error_code, std::string)>::return_type |
| /* | |
| * A simple example of an object in ANSI C. | |
| * This example uses malloc to create the new object. | |
| * | |
| * Note that with C++ the "this" variable is pretty much just implicit. | |
| * | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |
| #include <malloc.h> | |
| #include "class.h" | |
| /* This is the actual implementation of the class. | |
| * Because this file isn't included by main.c | |
| * code in main.c can not access foo except through | |
| * the functions declared in class.h. | |
| */ | |
| struct my_class_s { | |
| int foo; |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #include "deque.h" | |
| struct node_struct { | |
| struct node_struct *next; | |
| struct node_struct *prev; | |
| deque_val_type val; | |
| }; |
| #include <avr/io.h> | |
| #include <util/delay.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| typedef uint8_t bits_type; | |
| #define CFG_SHIFT_DDR DDRB | |
| #define CFG_SHIFT_PORT PORTB | |
| #define CFG_SHIFT_SRCLK PB1 | |
| #define CFG_SHIFT_RCLK PB2 |
| /* A simple ADC example that checks the analog reading on ADC0 and turns | |
| * an LED on if the reading is higher than a threshold value and turns if | |
| * off if it is under that value. */ | |
| #include <avr/io.h> | |
| #include <stdint.h> | |
| /* Which analog pin we want to read from. The pins are labeled "ADC0" | |
| * "ADC1" etc on the pinout in the data sheet. In this case ADC_PIN | |
| * being 0 means we want to use ADC0. On the ATmega328P this is also | |
| * the same as pin PC0 */ |
| /** | |
| * A PWM example for the ATmega328P using the 8-Bit Fast PWM mode. | |
| */ | |
| #include <avr/io.h> | |
| #include <avr/interrupt.h> | |
| #include <stdbool.h> | |
| #include <util/delay.h> | |
| int main (void) { |